-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.12.z, 4.11.z, 4.10.z
-
None
-
Quality / Stability / Reliability
-
False
-
-
5
-
None
-
No
-
None
-
None
-
None
-
Sprint 280
-
1
-
None
-
None
-
None
-
None
-
None
-
None
-
None
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:
- clones
-
CONSOLE-3590 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.
-
- Closed
-