Repository navigation
umbrella: mgr/dashboard: Backport hardware - #70585
Merged
Merged
Conversation
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)
Contributor
Author
|
/audit retest |
|
🔄 Audit Retest Triggered by @afreen23. |
aaSharma14
approved these changes
Jul 28, 2026
Contributor
|
This PR has been added to wip-yuri9-testing-20260729.135117-umbrella. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.