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

AlertManager wrongly escapes characters in custom PrometheusRule

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.12
    • Observability UI
    • None
    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      My partner implemented a notification mechanism in their OCP4 clusters through receivers.

      They deployed several Prometheus rules, for example :

      (round(kubelet_volume_stats_used_bytes / (kubelet_volume_stats_capacity_bytes <= 2.147483648e10) * 100, 0.1) > 60)

      Now they are facing a minor problem. When an alert is notified for example by e-mail, a URL starting with https://console-openshift-console.&lt;cluster_domain&gt;/monitoring/graph?g0.expr will point to the OpenShift Prometheus console, but the queries will be wrong there because they will include blank spaces in the scientific notation like (2.147483648e 10)

      When they open the link, a parsing issue occured as the console cannot parse the expression.

      Please check the following solution article for more details:

      https://access.redhat.com/solutions/7047429?band=se&seSessionId=f3b0ecbb-883c-4f45-9f07-47569f11e225&seSource=Recommendation&seResourceOriginID=6dab35a9-3d0e-42bc-9cfb-756998eb43dc

            gbernal@redhat.com Gabriel Bernal
            rh-ee-abaloghb Attila Balogh-Biro
            Junqi Zhao Junqi Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: