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

Prometheus and Alertmanager incorrect ExternalURL configured

    XMLWordPrintable

Details

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

      None

      Show
      None

    Description

      This is a clone of issue OCPBUGS-4181. The following is the description of the original issue:

      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
              openshift-crt-jira-prow OpenShift Prow Bot
              Junqi Zhao Junqi Zhao
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: