metrics
metrics copied to clipboard
Metric collection library for Tarantool
What has been done? Why? What problem is being solved? I found out that observe method works slow. Further investigations showed that `make_key` function sorts keys every run time. `make_key`...
POC for #461 I moved the code from gist to histogram.lua and kept the old histogram in histogram_old.lua. I keep getting the same result for both histograms on my Intel...
collector histogram is just bunch of counters, it is too bad for it to be slow. I've slightly rewrite collectors/histogram to speed it up: ## With constant labels for each...
See [Notion RFC (private)](https://www.notion.so/tarantool/OpenTelemetry-implementation-in-Tarantool-69153e6b94574e24be3e7189b25b994d) for more detailed info. Since aggregates are related to the core package, it is proposed to implement them there. `'aggregates'` is a new metrics section enabled...
See [Notion RFC (private)](https://www.notion.so/tarantool/OpenTelemetry-implementation-in-Tarantool-69153e6b94574e24be3e7189b25b994d) for more detailed info. Provide a new naming policy for all metrics in tarantool/metrics based on OpenTelemetry naming guides. Implement a flag to enable new/old metrics...
See [Notion RFC (private)](https://www.notion.so/tarantool/OpenTelemetry-implementation-in-Tarantool-69153e6b94574e24be3e7189b25b994d) for more detailed info. See implementation raw draft [here](https://github.com/DifferentialOrange/otel-cpp-tarantool-bridge). Implementation will be stored in `metrics.plugins.otlp` script, similar to other export plugins. Module API has two handles....
Follows https://github.com/tarantool/metrics/pull/424. After discussing with @artur-barsegyan, it was decided that it is better to include default HTTP metrics to feedback daemon output.
Due to the implementation of internal storage, it is possible to overwrite existing observations if they have two or more labels: ```lua tarantool> c = metrics.gauge('coll') --- ... tarantool> c:set(3,...
Change replica detection from using function `box.cfg.read_only` to `box.info.ro`. Function `box.info.ro` can be true in case of autofailover-leader change, but `box.cfg.read_only` may not. Reference: 1. Lua-function `box.info.ro` calls C-function `box_is_ro`:...
https://github.com/tarantool/metrics/blob/master/test/tarantool/cpu_metrics_test.lua This test still fails from time to time, see https://github.com/tarantool/metrics/actions/runs/9792762618/job/27039264365