]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus: refactor hardware metrics
authorAfreen Misbah <afreen@ibm.com>
Tue, 30 Jun 2026 14:09:13 +0000 (19:39 +0530)
committerAfreen Misbah <afreen@ibm.com>
Thu, 9 Jul 2026 20:11:30 +0000 (01:41 +0530)
commit101e8700d0e5fddf5fbf061a12e52f0f7ab1823f
treea21bf3de5022e3671277b9f59749ab0f2174dfd3
parent4391cbc403b501c167be072a8d061145a47574e8
mgr/prometheus: refactor hardware metrics

- export `firmware_version` labels from `node_proxy_storage_capacity_bytes` metrics to be used in device firmware panel
- improve iterations for performance - dropping redundant node_proxy_firmware() RPC; firmware data is already
  present in the fullreport response, and removing unnecessary loops.
- replace health if/elif chain with HEALTH_STATUS_MAP dict lookup
- rename metrics to ceph_hardware_*, fix component labels and add tests
- added unit test cases
- add serial name, slot info to capacity metric
- fix health metrics showing ID instead of component name

Signed-off-by: Afreen Misbah <afreen@ibm.com>
(cherry picked from commit be324304db45f37d3a4027ab568c5010003ef486)
monitoring/ceph-mixin/dashboards/hardware.libsonnet
monitoring/ceph-mixin/dashboards_out/hardware.json
src/pybind/mgr/prometheus/module.py
src/pybind/mgr/prometheus/test_module.py