Skip to content

Commit 187db93

Browse files
committed
OBSDOCS-256-document-UWM-label-behavior
1 parent e397af0 commit 187db93

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/monitoring-creating-cluster-id-labels-for-metrics.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ You can create cluster ID labels for metrics for default platform monitoring and
1212
For default platform monitoring, you add cluster ID labels for metrics in the `write_relabel` settings for remote write storage in the `cluster-monitoring-config` config map in the `openshift-monitoring` namespace.
1313

1414
For user workload monitoring, you edit the settings in the `user-workload-monitoring-config` config map in the `openshift-user-workload-monitoring` namespace.
15+
16+
[NOTE]
17+
====
18+
When Prometheus scrapes user workload targets that expose a `namespace` label, the system stores this label as `exported_namespace`.
19+
This behavior ensures that the final namespace label value is equal to the namespace of the target pod.
20+
You cannot override this default configuration by setting the value of the `honorLabels` field to `true` for `PodMonitor` or `ServiceMonitor` objects.
21+
====
22+
1523
endif::openshift-dedicated,openshift-rosa[]
1624

1725
ifdef::openshift-dedicated,openshift-rosa[]

0 commit comments

Comments
 (0)