Uploaded image for project: 'Observability and Data Analysis Program'
  1. Observability and Data Analysis Program
  2. OBSDA-760

Getting openshift alerts in Logging must-gather

XMLWordPrintable

    • Icon: Feature Feature
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • Logging 5.8, Logging 5.9
    • PM Logging
    • None
    • False
    • None
    • False
    • Not Selected
    • 0
    • 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

            jamparke@redhat.com Jamie Parker
            rhn-support-ocasalsa Oscar Casal Sanchez
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: