Skip to content

Commit 747d14f

Browse files
Fix tnt_cartridge_failover_trigger metric name (#396)
1 parent 221e4d1 commit 747d14f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
### Added
1616

1717
- Label `thread` for per thread reporting net statistics metrics.
18-
- `tnt_cartridge_failover_trigger` metric
18+
- `tnt_cartridge_failover_trigger_total` metric
1919
- New synchro and election metrics:
2020
- `tnt_synchro_queue_owner`
2121
- `tnt_synchro_queue_term`

doc/monitoring/metrics_reference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ Cartridge
411411
* ``max`` -- difference with the fastest clock (always positive),
412412
* ``min`` -- difference with the slowest clock (always negative).
413413

414-
* - ``tnt_cartridge_failover_trigger``
414+
* - ``tnt_cartridge_failover_trigger_total``
415415
- Count of failover triggers in cluster.
416416

417417
.. _metrics-reference-luajit:

metrics/cartridge/failover.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ local function update()
1616
if trigger_cnt ~= nil then
1717
collectors_list.trigger_cnt =
1818
utils.set_counter(
19-
'cartridge_failover_trigger',
19+
'cartridge_failover_trigger_total',
2020
'Count of Cartridge Failover triggers',
2121
trigger_cnt
2222
)

test/integration/cartridge_metrics_test.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ g.test_failover = function()
137137

138138
helpers.retrying({timeout = 30}, function()
139139
local resp = g.cluster:server('replica'):http_request('get', '/metrics')
140-
local failover_trigger_cnt = utils.find_metric('tnt_cartridge_failover_trigger', resp.json)
140+
local failover_trigger_cnt = utils.find_metric('tnt_cartridge_failover_trigger_total', resp.json)
141141
t.assert_equals(failover_trigger_cnt[1].value, 1)
142142
end)
143143

0 commit comments

Comments
 (0)