-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
openshift-4.10.z, openshift-4.11.z, openshift-4.12.z
-
None
-
False
-
None
-
False
-
-
-
Important
Issue: Resources and Pod count gets doubled in OpenShift WebConsole when _replica_ is set to $(POD_NAME) and added as external label in cluster-monitoring-config cm.
Steps to reproduce:
1) OpenShift WebConsole > Compute > Nodes (Take screenshot)
2) Create cluster-monitoring-config cm in openshift-monitoring
apiVersion: v1 kind: ConfigMap metadata: name: cluster-monitoring-config namespace: openshift-monitoring data: config.yaml: | prometheusK8s: externalLabels: __replica__: $(POD_NAME)
3) OpenShift WebConsole > Compute > Nodes ---> check pod count and resources --> 2x values are found
4) With API 2x values are not seen
oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -s --data-urlencode "query=sum by (instance) (node_memory_MemTotal_bytes)" 'http://localhost:9090/api/v1/query?'
More info: