Skip to content

umbrella: mgr/dashboard: Backport hardware - #70585

Merged
batrick merged 13 commits into
ceph:umbrellafrom
rhcs-dashboard:backport-hardware
Aug 3, 2026
Merged

batrick merged 13 commits into
ceph:umbrellafrom
rhcs-dashboard:backport-hardware

Conversation

@afreen23

Copy link
Copy Markdown
Contributor

backport tracker: https://tracker.ceph.com/issues/77917 https://tracker.ceph.com/issues/78062 https://tracker.ceph.com/issues/78061 https://tracker.ceph.com/issues/78598

backport of #69750 #69753 #69757 #70292

parent tracker: https://tracker.ceph.com/issues/77723

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

afreen23 added 13 commits July 27, 2026 22:38
Signed-off-by: Afreen Misbah <[email protected]>
(cherry picked from commit aa8f054)
Signed-off-by: Afreen Misbah <[email protected]>
(cherry picked from commit 0514014)
The hardware metrics exporter was reading cephadm's private KV store
directly via get_store_prefix('mgr/cephadm/node_proxy/data'). This
had two problems:

1. get_store_prefix() is module-scoped, so from the prometheus module
   it searched under prometheus's own namespace instead of cephadm's,
   resulting in zero metrics being exported despite metric definitions
   appearing at /metrics.

2. The firmware key was accessed as 'firmwares' (plural) but the
   stored field is 'firmware' (singular), causing all firmware version
   metrics to be silently empty.

Use node_proxy_fullreport() and node_proxy_firmware() via the
OrchestratorClientMixin instead. This routes through cephadm's
NodeProxyCache which handles KV access and firmware key compat
correctly. Follows the same pattern as set_cephadm_daemon_status_metrics()
and get_smb_metadata().

Signed-off-by: Afreen Misbah <[email protected]>
Assisted-by: Claude
Signed-off-by: Afreen Misbah <[email protected]>
(cherry picked from commit 6bb07c6)
- Fix fan repeating panels: set multi=true on fan_speeds template
  variable so Grafana generates one panel per fan instead of one
- Remove TACH-only regex filter on fan_speeds template and AVG
  Cooling query so all system fans are visible regardless of naming
- Replace duplicate Power Control panel with Network health panel
- Fix NVMe drive count to use storage_capacity_bytes{protocol=NVMe}
  instead of counting temperature sensors (inaccurate proxy)
- Normalize all hostname filters to regex match (=~) for consistency
- Register hardware.libsonnet in dashboards.libsonnet so the
  dashboard JSON is generated during ceph-mixin builds
- Add temperatures category to prometheus health metrics loop

Signed-off-by: Afreen Misbah <[email protected]>
Assisted-by: Claude
Signed-off-by: Afreen Misbah <[email protected]>
(cherry picked from commit 04207ca)
…emory_capacity_bytes

Prometheus naming conventions require base units (bytes not MiB)

Signed-off-by: Afreen Misbah <[email protected]>
(cherry picked from commit ae0567e)
- CPU/NVMe temp: change from stat to gauge panels with colored
  arc thresholds (green/yellow/red) and proper °C units
- Health panels: wrap queries in max() aggregation to show
  single worst-case value instead of overlapping series
- Pie charts: switch to donut style with visible legends
- Fan RPM: use locale unit for comma formatting instead of
  short which auto-scaled to "K"
- Fix temperature panels units
- Add Device List and Platform Firmware table panels

Fixes https://tracker.ceph.com/issues/77723

Signed-off-by: Afreen Misbah <[email protected]>
(cherry picked from commit 5dd6807)
- 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 <[email protected]>
(cherry picked from commit be32430)
- Update tests to check for queries in nested row panels
- fix tox tests
- add named tuple

Signed-off-by: Afreen Misbah <[email protected]>
(cherry picked from commit aba8698)
Signed-off-by: Afreen Misbah <[email protected]>
(cherry picked from commit 4be833e)
Signed-off-by: Afreen Misbah <[email protected]>
(cherry picked from commit b231e6f)
Add comprehensive Grafana dashboard for monitoring hardware compression
metrics from FCM-enabled drives.

Signed-off-by: Afreen Misbah <[email protected]>
(cherry picked from commit da21940)
Signed-off-by: Afreen Misbah <[email protected]>
(cherry picked from commit 42b3a7d)
Switch all stat panels in the hardware and hardware compression
dashboards from lastNotNull to last reduceFunction. When a host is
unreachable or node-proxy stops, metric silence is ambiguous — it
could mean host down, agent crash, or scrape failure. lastNotNull
freezes the last known value (e.g. 4 NVMe drives), causing
inconsistency with the global Overview which reflects live count
reductions.

Use last so panels show N/A when no current data arrives.

Fixes: https://tracker.ceph.com/issues/78360

Signed-off-by: Afreen Misbah <[email protected]>
(cherry picked from commit 8321ca2)
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 27, 2026
@afreen23 afreen23 changed the title tentacle: mgr/dashboard: Backport hardware umbrella: mgr/dashboard: Backport hardware Jul 27, 2026
@afreen23

Copy link
Copy Markdown
Contributor Author

/audit retest

@github-actions

Copy link
Copy Markdown

🔄 Audit Retest Triggered by @afreen23.

View workflow run

@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-fail Release engineering: failed backport verification audit. labels Jul 27, 2026
@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Jul 28, 2026
@yuriw

yuriw commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri9-testing-20260729.135117-umbrella.

@batrick batrick modified the milestones: umbrella, v21.1.1 Aug 3, 2026
@batrick
batrick merged commit 082c65f into ceph:umbrella Aug 3, 2026
10 of 13 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Aug 3, 2026
@afreen23
afreen23 deleted the backport-hardware branch August 6, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants