Bug 1791005 - Metric labels set incorrectly during build
Summary: Metric labels set incorrectly during build
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Insights Operator
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: Pavel Šimovec
Radek Vokál
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-14 16:41 UTC by Pawel Krupa
Modified: 2023-03-09 00:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-09 00:57:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pawel Krupa 2020-01-14 16:41:48 UTC
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.

Comment 5 Shiftzilla 2023-03-09 00:57:42 UTC
OpenShift has moved to Jira for its defect tracking! This bug can now be found in the OCPBUGS project in Jira.

https://issues.redhat.com/browse/OCPBUGS-8763


Note You need to log in before you can comment on or make changes to this bug.