Bug 2255491
| Summary: | Add 'managedBy' label to rook-ceph-exporter metrics and alerts | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat OpenShift Data Foundation | Reporter: | arun kumar mohan <amohan> |
| Component: | ceph-monitoring | Assignee: | arun kumar mohan <amohan> |
| Status: | CLOSED ERRATA | QA Contact: | akarsha <akrai> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.14 | CC: | ebenahar, jolmomar, kbg, muagarwa, nthomas, odf-bz-bot, skatiyar, uchapaga |
| Target Milestone: | --- | ||
| Target Release: | ODF 4.15.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
.Add 'managedBy' label to rook-ceph-exporter metrics and alerts
Previously, the metrics generated by `rook-ceph-exporter` did not have the 'managedBy' label. So, it was not possible for OpenShift console user interface to identify from which StorageSystem the metrics is generated.
With this fix, the `managedBy` label, which has the name of the StorageSystem as a value is added through the OCS operator to the storage cluster's `Monitoring` spec. This spec is read by the Rook operator and it relabels the ceph-exporter's ServiceMonitor endpoint labels. As a result, all the metrics generated from this exporter will have the new label `managedBy`.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-03-19 15:26:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2246375 | ||
|
Description
arun kumar mohan
2023-12-21 08:58:59 UTC
Is this must for 4.15? Yes Mudit, it is a blocker for 4.15 The fix is to add `managedBy` label to all the metrics produced/generated by `rook-ceph-exporter` pod.
Confirm these TWO things,
a. ServiceMonitor endpoint check
`rook-ceph-exporter` ServiceMonitor should have the following 'spec' entry,
spec -> endpoints -> relabeling -> {action: replace, replacement: ocs-storagecluster, targetLabel: managedBy}
b. Check the metrics generated by `rook-ceph-exporter`
In the ODF Console interface, under 'Observe' (left side) tab, select/click-on 'Metrics' label/link.
One of the metrics generated by ceph-exporter is "ceph_mon_num_elections".
Add this metric-name to the query text-space and execute the query.
We should see 'managedBy' label in the query result, with the value of the current storagesystem name.
This should verify the fix.
Adding the doc text, please take a look. Thanks Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Red Hat OpenShift Data Foundation 4.15.0 security, enhancement, & bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2024:1383 |