]> 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, 2 Jul 2026 08:50:08 +0000 (14:20 +0530)
commitbe324304db45f37d3a4027ab568c5010003ef486
treeadf242790a772720271a1d989ce4dd1a9357d00a
parent5dd6807e3187ba6792f69736b5e4d396832b1686
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>
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