]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: export zero valued pg state metrics 49786/head
authorAvan Thakkar <athakkar@redhat.com>
Mon, 16 Jan 2023 12:41:06 +0000 (18:11 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Thu, 19 Jan 2023 10:22:04 +0000 (15:52 +0530)
commit8586514ab0c433f078ff2651c6b6bb7f9068445b
tree63dc117dccb3dfcdb57b3b54e10a0c0bf840014f
parentad56326876db324354521e0a9d18ebfda664cf95
mgr/prometheus: export zero valued pg state metrics

Fixes: https://tracker.ceph.com/issues/58471
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
As per the Prometheus documentation, omitting zero metrics is not a best practice. The metric value for all PG_STATES should be initialized to zero.

(cherry picked from commit 17d1ecc914b2fe6c5d9e8045a999985988c39447)
src/pybind/mgr/prometheus/module.py