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

Metric labels set incorrectly during build

XMLWordPrintable

    • Quality / Stability / Reliability
    • None
    • None
    • None
    • Low
    • None
    • Unspecified
    • None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • None
    • None
    • None
    • None

      Description of problem:
      Following metric labels are not set: `gitCommit` and `gitVersion`. They are returned as `gitCommit="$Format:%H$",gitVersion="v0.0.0-master+$Format:%h$"`

      This is the case for openshift-insights-operator

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

      How reproducible:
      Always

      Steps to Reproduce:
      1. Start a cluster
      2. Go to metrics console
      3. search for `kubernetes_build_info

      {job!~"kube-dns|coredns",gitVersion!="v1.17.0"}

      `

      Actual results:
      Prometheus returns metrics with invalid label values:
      `gitCommit="$Format:%H$" and gitVersion="v0.0.0-master+$Format:%h$"`

      Expected results:
      Nothing is returned

      Additional info:
      Frequently happens in CI builds.

              tremes1@redhat.com Tomas Remes
              openshift_jira_bot OpenShift Jira Bot
              None
              None
              None
              None
              Red Hat Employee
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: