Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-4181

Prometheus and Alertmanager incorrect ExternalURL configured

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • None
    • 4.13.0, 4.12.z, 4.11.z, 4.10.z
    • Monitoring
    • None
    • +
    • Low
    • MON Sprint 228
    • 1
    • False
    • Hide

      None

      Show
      None
    • Hide
      Before the fix, if users were to configure externalURL in CMO then when they received an alert it would have a link to the console that had more than 2 "/" after "http".
      After the fix, the URL should now be correct and have only 2 "/".
      Show
      Before the fix, if users were to configure externalURL in CMO then when they received an alert it would have a link to the console that had more than 2 "/" after "http". After the fix, the URL should now be correct and have only 2 "/".
    • Bug Fix

    Description

      Description of problem:

      After configuring a webhook receiver in alertmanager to send alerts to an external tool, a customer noticed that when receiving alerts they have as source "https:///<console-url>" (notice the 3 /).

      Version-Release number of selected component (if applicable):

      OCP 4.10

      How reproducible:

      Always

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

      https:///<console-url>

      Expected results:

      https://<console-url>

      Additional info:

      After investigating I discovered that the problem might be in the CMO code:

      → oc get Alertmanager main -o yaml | grep externalUrl
        externalUrl: https:/console-openshift-console.apps.jakumar-2022-11-27-224014.devcluster.openshift.com/monitoring
      → oc get Prometheus k8s -o yaml | grep externalUrl
        externalUrl: https:/console-openshift-console.apps.jakumar-2022-11-27-224014.devcluster.openshift.com/monitoring

      Attachments

        Issue Links

          Activity

            People

              jmarcal@redhat.com Joao Marcal
              jmarcal@redhat.com Joao Marcal
              Junqi Zhao Junqi Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: