-
Notifications
You must be signed in to change notification settings - Fork 26
instance: total memory metric #519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
instance: total memory metric #519
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part also should be updated
https://github.com/tarantool/metrics/blob/master/doc/monitoring/api_reference.rst#metrics-functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
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.
This patch adds new
tnt_memory
metric.Closes #TNTP-4363