]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: track individual healthchecks as metrics
authorPaul Cuzner <pcuzner@redhat.com>
Thu, 16 Sep 2021 23:24:29 +0000 (11:24 +1200)
committerAvan Thakkar <athakkar@redhat.com>
Thu, 6 Jan 2022 09:47:47 +0000 (15:17 +0530)
commit78df779cf5418c1b9a82be21defa2f41c7bf1dec
tree39a258d65f8c3192a9c0e4b9b20d05707213d17d
parent5c1acc0c5b989a6fec970a23bf0113c56457065e
mgr/prometheus: track individual healthchecks as metrics

This patch creates a health history object maintained in
the modules kvstore.  The history and current health
checks are used to create a metric per healthcheck whilst
also providing a history feature. Two new commands are added:
ceph healthcheck history ls
ceph healthcheck history clear

In addition to the new commands, the additional metrics
have been used to update the prometheus alerts

Fixes: https://tracker.ceph.com/issues/52638
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
(cherry picked from commit e0dfc02063ef40cf6a1dc6e3080d0a856ceff050)

 Conflicts:
doc/mgr/prometheus.rst
     - Adopting doc with master.
doc/mgr/prometheus.rst
monitoring/prometheus/alerts/ceph_default_alerts.yml
monitoring/prometheus/alerts/test_alerts.yml
src/pybind/mgr/prometheus/module.py