Skip to content

Commit

Permalink
lua: bump metrics module
Browse files Browse the repository at this point in the history
Bump metrics package submodule. Commits from PRs [1-4] affect
Tarantool, the other ones are related to module infrastructure.

1. tarantool/metrics#482
2. tarantool/metrics#483
3. tarantool/metrics#484
4. tarantool/metrics#491

NO_DOC=doc is a part of submodule
  • Loading branch information
DifferentialOrange committed Jul 16, 2024
1 parent e5c4bd6 commit 2fcff2f
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 1 deletion.
8 changes: 8 additions & 0 deletions changelogs/unreleased/bump-metrics-to-1.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## feature/lua

* Deprecated using `cdata` values with `metrics` module `histogram:observe`.
* Updated memtx metrics descriptions from `metrics` module to be consistent.
* Added new metrics to `metrics` module: `tnt_memtx_tuples_data_total`,
`tnt_memtx_tuples_data_read_view`, `tnt_memtx_tuples_data_garbage`,
`tnt_memtx_index_total`, `tnt_memtx_index_read_view`, `tnt_vinyl_memory_tuple`,
`tnt_config_alerts`, `tnt_config_status`.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ lua_source(lua_sources ../third_party/metrics/metrics/quantile.lua metrics_quant
lua_source(lua_sources ../third_party/metrics/metrics/registry.lua metrics_registry_lua)
lua_source(lua_sources ../third_party/metrics/metrics/stash.lua metrics_stash_lua)
lua_source(lua_sources ../third_party/metrics/metrics/tarantool/clock.lua metrics_tarantool_clock_lua)
lua_source(lua_sources ../third_party/metrics/metrics/tarantool/config.lua metrics_tarantool_config_lua)
lua_source(lua_sources ../third_party/metrics/metrics/tarantool/cpu.lua metrics_tarantool_cpu_lua)
lua_source(lua_sources ../third_party/metrics/metrics/tarantool/event_loop.lua metrics_tarantool_event_loop_lua)
lua_source(lua_sources ../third_party/metrics/metrics/tarantool/fibers.lua metrics_tarantool_fibers_lua)
Expand Down
3 changes: 3 additions & 0 deletions src/box/lua/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ extern char session_lua[],
metrics_registry_lua[],
metrics_stash_lua[],
metrics_tarantool_clock_lua[],
metrics_tarantool_config_lua[],
metrics_tarantool_cpu_lua[],
metrics_tarantool_event_loop_lua[],
metrics_tarantool_fibers_lua[],
Expand Down Expand Up @@ -281,6 +282,8 @@ static const char *lua_sources[] = {
"metrics.psutils.cpu", metrics_psutils_cpu_lua,
"third_party/metrics/metrics/tarantool/clock",
"metrics.tarantool.clock", metrics_tarantool_clock_lua,
"third_party/metrics/metrics/tarantool/config",
"metrics.tarantool.config", metrics_tarantool_config_lua,
"third_party/metrics/metrics/tarantool/cpu",
"metrics.tarantool.cpu", metrics_tarantool_cpu_lua,
"third_party/metrics/metrics/tarantool/event_loop",
Expand Down
1 change: 1 addition & 0 deletions test/app-luatest/tnt_debug_getsources_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ local files = {
'third_party/metrics/metrics/registry',
'third_party/metrics/metrics/stash',
'third_party/metrics/metrics/tarantool/clock',
'third_party/metrics/metrics/tarantool/config',
'third_party/metrics/metrics/tarantool/cpu',
'third_party/metrics/metrics/tarantool/event_loop',
'third_party/metrics/metrics/tarantool/fibers',
Expand Down
3 changes: 3 additions & 0 deletions test/metrics-luatest/helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,6 @@ local test_root = fio.dirname(
package.loaded['test.utils'].LUA_PATH = os.getenv('LUA_PATH') ..
test_root .. '/?.lua;' ..
test_root .. '/?/init.lua;'

workaround_requires('test.tarantool3_helpers.server')
workaround_requires('test.tarantool3_helpers.treegen')
3 changes: 3 additions & 0 deletions test/metrics-luatest/tarantool_config_metrics_test.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require('test.metrics-luatest.helper')

require('third_party.metrics.test.tarantool.config_metrics_test')

0 comments on commit 2fcff2f

Please sign in to comment.