Conversation
4cd4c5c to
c0dc385
Compare
c0dc385 to
b04387a
Compare
doc/monitoring/metrics_reference.rst
Outdated
| :widths: 25 75 | ||
| :header-rows: 0 | ||
|
|
||
| * - ``tnt_instance_memory`` |
There was a problem hiding this comment.
In the documentation, each section is enabled/disabled separately. If you introduce instance section, its metrics should be in a separate section.
There was a problem hiding this comment.
This part also should be updated
https://github.com/tarantool/metrics/blob/master/doc/monitoring/api_reference.rst#metrics-functions
metrics/tarantool/instance.lua
Outdated
| --[[vinyl]] | ||
| local vinyl_stat = box.stat.vinyl() | ||
| if vinyl_stat ~= nil then | ||
| memory_stat = memory_stat + vinyl_stat.memory.tuple_cache |
There was a problem hiding this comment.
It seems that box.info.memory().cache and box.stat.vinyl().tuple_cache are the same, so they're counted twice
cache– the number of bytes used for caching user data. The memtx storage engine does not require a cache, so in fact this is the number of bytes in the cache for the tuples stored for the vinyl storage engine.
(https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_info/memory/)
The same goes for box.info.memory().data and box.info.memory().index
data– the number of bytes used for storing user data (the tuples) with the memtx engine and with level 0 of the vinyl engine, without taking memory fragmentation into account.
index– the number of bytes used for indexing user data, including memtx and vinyl memory tree extents, the vinyl page index, and the vinyl bloom filters.
ba6e1bf to
46efe82
Compare
33d1617 to
2252b87
Compare
This patch adds new `tnt_memory` metric. Closes #TNTP-4363
4ded5f2 to
9049a83
Compare
Bump metric package submodule. Commits from PR[1-5] add new metric to Tarantool. 1. tarantool/metrics#519 2. tarantool/metrics#521 3. tarantool/metrics#524 4. tarantool/metrics#525 5. tarantool/metrics#527
Bump metric package submodule. Commits from PR[1-5] add new metric to Tarantool. 1. tarantool/metrics#519 2. tarantool/metrics#521 3. tarantool/metrics#524 4. tarantool/metrics#525 5. tarantool/metrics#527 @TarantoolBot document Title: Document `new system memory metrics` `'tnt_memory'`, `'tnt_memory_virt'`, `'schema_needs_upgrade'` are new metrics, introduced in metrics 1.6.0, and enabled by default.
Bump metric package submodule to 1.6.1. Commits from PR[1-6] add new metric to Tarantool. 1. tarantool/metrics#519 2. tarantool/metrics#521 3. tarantool/metrics#524 4. tarantool/metrics#525 5. tarantool/metrics#527 6. tarantool/metrics#529 @TarantoolBot document Title: Document `new system memory metrics` `'tnt_memory'`, `'tnt_memory_virt'`, `'schema_needs_upgrade'` are new metrics, introduced in metrics 1.6.1, and enabled by default.
Bump metric package submodule to 1.6.1. Commits from PR[1-8] add and remove metrics to Tarantool. 1. tarantool/metrics#508 2. tarantool/metrics#516 3. tarantool/metrics#519 4. tarantool/metrics#521 5. tarantool/metrics#524 6. tarantool/metrics#525 7. tarantool/metrics#527 8. tarantool/metrics#529 Closes #11950 @TarantoolBot document Title: Bump metrics module to 1.6.1 `'tnt_memory'`, `'tnt_memory_virt'`, `'schema_needs_upgrade'` are new metrics, introduced in metrics 1.6.0, and enabled by default. `'tnt_cartridge_config_checksum'` is new metric, introduced in metrics 1.5.0. New optional ``label_keys`` parameter for ``counter()`` and ``gauge()`` metrics are presented in metrics 1.4.0.
Bump metric package submodule to 1.6.1. Commits from PR[1-7] add and remove metrics to Tarantool. 1. tarantool/metrics#508 2. tarantool/metrics#516 3. tarantool/metrics#519 4. tarantool/metrics#521 5. tarantool/metrics#524 6. tarantool/metrics#527 7. tarantool/metrics#529 Closes #11950 @TarantoolBot document Title: Bump metrics module to 1.6.1 `'tnt_memory'`, `'tnt_memory_virt'`, `'schema_needs_upgrade'` are new metrics, introduced in metrics 1.6.0, and enabled by default. `'tnt_cartridge_config_checksum'` is new metric, introduced in metrics 1.5.0. New optional ``label_keys`` parameter for ``counter()`` and ``gauge()`` metrics are presented in metrics 1.4.0.
Bump metric package submodule to 1.6.1. Commits from PR[1-7] add new metrics to Tarantool. 1. tarantool/metrics#508 2. tarantool/metrics#516 3. tarantool/metrics#519 4. tarantool/metrics#521 5. tarantool/metrics#524 6. tarantool/metrics#527 7. tarantool/metrics#529 Closes #11950 @TarantoolBot document Title: Bump metrics module to 1.6.1 `'tnt_memory'`, `'tnt_memory_virt'`, `'schema_needs_upgrade'` are new metrics, introduced in metrics 1.6.0, and enabled by default. `'tnt_cartridge_config_checksum'` is new metric, introduced in metrics 1.5.0. New optional ``label_keys`` parameter for ``counter()`` and ``gauge()`` metrics are presented in metrics 1.4.0.
Bump metric package submodule to 1.6.1. Commits from PR[1-7] add new metrics to Tarantool. 1. tarantool/metrics#508 2. tarantool/metrics#516 3. tarantool/metrics#519 4. tarantool/metrics#521 5. tarantool/metrics#524 6. tarantool/metrics#527 7. tarantool/metrics#529 Closes #11950 @TarantoolBot document Title: Bump metrics module to 1.6.1 `'tnt_memory'`, `'tnt_memory_virt'`, `'schema_needs_upgrade'` are new metrics, introduced in metrics 1.6.0, and enabled by default. `'tnt_cartridge_config_checksum'` is new metric, introduced in metrics 1.5.0. New optional ``label_keys`` parameter for ``counter()`` and ``gauge()`` metrics are presented in metrics 1.4.0.
Bump metric package submodule to 1.6.1. Commits from PR[1-7] add new metrics to Tarantool. 1. tarantool/metrics#508 2. tarantool/metrics#516 3. tarantool/metrics#519 4. tarantool/metrics#521 5. tarantool/metrics#524 6. tarantool/metrics#527 7. tarantool/metrics#529 Closes #11950 @TarantoolBot document Title: Bump metrics module to 1.6.1 `'tnt_memory'`, `'tnt_memory_virt'`, `'schema_needs_upgrade'` are new metrics, introduced in metrics 1.6.0, and enabled by default. `'tnt_cartridge_config_checksum'` is new metric, introduced in metrics 1.5.0. New optional ``label_keys`` parameter for ``counter()`` and ``gauge()`` metrics are presented in metrics 1.4.0.
Bump metric package submodule to 1.6.1. Commits from PR[1-7] add new metrics to Tarantool. 1. tarantool/metrics#508 2. tarantool/metrics#516 3. tarantool/metrics#519 4. tarantool/metrics#521 5. tarantool/metrics#524 6. tarantool/metrics#527 7. tarantool/metrics#529 Closes #11950 @TarantoolBot document Title: Bump metrics module to 1.6.1 `'tnt_memory'`, `'tnt_memory_virt'`, `'schema_needs_upgrade'` are new metrics, introduced in metrics 1.6.0, and enabled by default. `'tnt_cartridge_config_checksum'` is new metric, introduced in metrics 1.5.0. New optional ``label_keys`` parameter for ``counter()`` and ``gauge()`` metrics are presented in metrics 1.4.0.
Bump metric package submodule to 1.6.1. Commits from PR[1-7] add new metrics to Tarantool. 1. tarantool/metrics#508 2. tarantool/metrics#516 3. tarantool/metrics#519 4. tarantool/metrics#521 5. tarantool/metrics#524 6. tarantool/metrics#527 7. tarantool/metrics#529 Closes #11950 @TarantoolBot document Title: Bump metrics module to 1.6.1 `'tnt_memory'`, `'tnt_memory_virt'`, `'schema_needs_upgrade'` are new metrics, introduced in metrics 1.6.0, and enabled by default. `'tnt_cartridge_config_checksum'` is new metric, introduced in metrics 1.5.0. New optional ``label_keys`` parameter for ``counter()`` and ``gauge()`` metrics are presented in metrics 1.4.0.
Bump metric package submodule to 1.6.1. Commits from PR[1-7] add new metrics to Tarantool. 1. tarantool/metrics#508 2. tarantool/metrics#516 3. tarantool/metrics#519 4. tarantool/metrics#521 5. tarantool/metrics#524 6. tarantool/metrics#527 7. tarantool/metrics#529 Closes #11950 @TarantoolBot document Title: Bump metrics module to 1.6.1 `'tnt_memory'`, `'tnt_memory_virt'`, `'schema_needs_upgrade'` are new metrics, introduced in metrics 1.6.0, and enabled by default. `'tnt_cartridge_config_checksum'` is new metric, introduced in metrics 1.5.0. New optional ``label_keys`` parameter for ``counter()`` and ``gauge()`` metrics are presented in metrics 1.4.0.
Bump metric package submodule to 1.6.1. Commits from PR[1-7] add new metrics to Tarantool. 1. tarantool/metrics#508 2. tarantool/metrics#516 3. tarantool/metrics#519 4. tarantool/metrics#521 5. tarantool/metrics#524 6. tarantool/metrics#527 7. tarantool/metrics#529 Closes #11950 @TarantoolBot document Title: Bump metrics module to 1.6.1 `'tnt_memory'`, `'tnt_memory_virt'`, `'schema_needs_upgrade'` are new metrics, introduced in metrics 1.6.0, and enabled by default. `'tnt_cartridge_config_checksum'` is new metric, introduced in metrics 1.5.0. New optional ``label_keys`` parameter for ``counter()`` and ``gauge()`` metrics are presented in metrics 1.4.0.
Bump metric package submodule to 1.6.1. Commits from PR[1-7] add new metrics to Tarantool. 1. tarantool/metrics#508 2. tarantool/metrics#516 3. tarantool/metrics#519 4. tarantool/metrics#521 5. tarantool/metrics#524 6. tarantool/metrics#527 7. tarantool/metrics#529 Closes #11950 @TarantoolBot document Title: Bump metrics module to 1.6.1 `'tnt_memory'`, `'tnt_memory_virt'`, `'schema_needs_upgrade'` are new metrics, introduced in metrics 1.6.0, and enabled by default. `'tnt_cartridge_config_checksum'` is new metric, introduced in metrics 1.5.0. New optional ``label_keys`` parameter for ``counter()`` and ``gauge()`` metrics are presented in metrics 1.4.0.
This patch adds new
tnt_memorymetric.Closes #TNTP-4363