-
Feature
-
Resolution: Unresolved
-
Undefined
-
None
-
Logging 5.8, Logging 5.9
-
None
-
False
-
None
-
False
-
Not Selected
-
0
-
0
-
0%
-
0
Proposed title of this feature request
Getting openshift alerts in Logging must-gather
What is the nature and description of the request?
For troubleshooting reasons, having the list of alerts triggered in OpenShift attached to the Logging must-gather helps to visualize how it's the cluster and Logging status and what alerts are triggered.
These alerts are collected in a normal must-gather, but not in a logging must-gather.
For getting these alerts:
$ token=$(oc whoami --show-token) $ oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -k -H "Authorization: Bearer $token" 'https://prometheus-k8s.openshift-monitoring.svc:9091/api/v1/alerts' > alerts.json
or, it could be collected this information as it's in a cluster must-gather https://github.com/openshift/must-gather/blob/release-4.15/collection-scripts/gather_monitoring. The output format of this will help to be used by tools as `omc`: https://github.com/gmeghnag/omc/issues/136.
Why does the customer need this? (List the business requirements)
Giving visibility of the cluster/logging stack status getting a list of the alerts that could guide in the troubleshooting process.
List any affected packages or components.
Logging must-gather