]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: fix pool_objects_repaired and daemon_health_metrics format 51671/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:27 +0000 (22:43 +0700)
commitaf88bb2e3adfa7b131955c95dd9aaa4fa5d67d52
tree640b737f39c2ed9c9ad121cfacaea1fea73ce611
parentba5153fd35b68163ee0bdaac6f7157fdf06af9fe
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