-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.18.0
-
None
-
Low
-
Yes
-
False
-
Description of problem:
checked with 4.18.0-0.nightly-2024-10-16-094159, version value is "v" for kube_state_metrics_build_info
$ token=`oc create token prometheus-k8s -n openshift-monitoring` $ oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -k -H "Authorization: Bearer $token" 'https://thanos-querier.openshift-monitoring.svc:9091/api/v1/query?' --data-urlencode 'query=kube_state_metrics_build_info' | jq { "status": "success", "data": { "resultType": "vector", "result": [ { "metric": { "__name__": "kube_state_metrics_build_info", "branch": "rhaos-4.18-rhel-9", "container": "kube-rbac-proxy-self", "endpoint": "https-self", "goarch": "amd64", "goos": "linux", "goversion": "go1.22.7 (Red Hat 1.22.7-1.el9_5) X:strictfipsruntime", "instance": "10.128.2.10:9443", "job": "kube-state-metrics", "namespace": "openshift-monitoring", "pod": "kube-state-metrics-5b579cc9-tdtbb", "prometheus": "openshift-monitoring/k8s", "revision": "21cc50a", "service": "kube-state-metrics", "tags": "strictfipsruntime", "version": "v" }, "value": [ 1729240100.832, "1" ] } ], "analysis": {} }
checked from kube-state-metrics endpoints, version="v"
$ oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -k -H "Authorization: Bearer $token" 'https://10.128.2.10:9443/metrics' | grep kube_state_metrics_build_info # HELP kube_state_metrics_build_info A metric with a constant '1' value labeled by version, revision, branch, goversion from which kube_state_metrics was built, and the goos and goarch for the build. # TYPE kube_state_metrics_build_info gauge kube_state_metrics_build_info{branch="rhaos-4.18-rhel-9",goarch="amd64",goos="linux",goversion="go1.22.7 (Red Hat 1.22.7-1.el9_5) X:strictfipsruntime",revision="21cc50a",tags="strictfipsruntime",version="v"} 1
kube-state-metrics version is v2.13.0
$ oc -n openshift-monitoring get pod --show-labels | grep kube-state-metrics kube-state-metrics-5b579cc9-tdtbb 3/3 Running 0 6h54m app.kubernetes.io/component=exporter,app.kubernetes.io/managed-by=cluster-monitoring-operator,app.kubernetes.io/name=kube-state-metrics,app.kubernetes.io/part-of=openshift-monitoring,app.kubernetes.io/version=2.13.0,pod-template-hash=5b579cc9
Version-Release number of selected component (if applicable):
checked with 4.18.0-0.nightly-2024-10-16-094159
How reproducible:
always
Steps to Reproduce:
1. check kube_state_metrics_build_info result
Actual results:
version value is "v" for kube_state_metrics_build_info
Expected results:
v2.13.0
Additional info:
only have issue with 4.18