]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: export zero valued pg state metrics 49787/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:32:11 +0000 (16:02 +0530)
commit1e73262bdfd5e2bc6fe1b85732392a50616fe41f
tree0a8e45f4c6a188504cb4fbf5230fa373f3bbb636
parent2c9e0b364b7cf0ed547ccc3b26a621778cedf950
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