]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: export zero valued pg state metrics 49759/head
authorAvan Thakkar <athakkar@redhat.com>
Mon, 16 Jan 2023 12:41:06 +0000 (18:11 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Mon, 16 Jan 2023 17:05:04 +0000 (22:35 +0530)
commit17d1ecc914b2fe6c5d9e8045a999985988c39447
tree310472651b9e08fe2f97304acd32160dfee62e06
parent6d583d25c5c0d6cef470e81d00a590ed03f1cd8e
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.
src/pybind/mgr/prometheus/module.py