]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: fix pool_objects_repaired and daemon_health_metrics format 51672/head
authorbanuchka <tyrchenok@gmail.com>
Sat, 15 Apr 2023 20:56:05 +0000 (21:56 +0100)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Mon, 22 May 2023 15:43:52 +0000 (22:43 +0700)
commitfe824571fc12180f910db5791574f2f5fe3bc8db
tree8b77ea7eed6994199ad2f7663861940ab8363c13
parent9ee2614ab57057a66b5a2e4b95877bbdfc419ca7
mgr/prometheus: fix pool_objects_repaired and daemon_health_metrics format

mgr/prometheus: fix pool_objects_repaired and daemon_health_metrics format

- fix "error reading metrics for http://****:***/metrics: reading text format failed: text format parsing error in line 2010: second HELP line for metric name "ceph_pool_objects_repaired" error

- rename label name "poolid" to "pool_id" like all other metrics
- change type for the "daemon_health_metrics" to gauge

Fixes: https://tracker.ceph.com/issues/59505
Signed-off-by: banuchka <tyrchenok@gmail.com>
(cherry picked from commit 95d5303e11d6cba5ec4e71716af8931bcc2b9767)
src/pybind/mgr/prometheus/module.py