Skip to content

Commit f7492fe

Browse files
committed
OSDOCS-1702: ServiceMonitor per namespace only for user-defined projects
1 parent 1be0a16 commit f7492fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/monitoring-specifying-how-a-service-is-monitored.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ spec:
4747
+
4848
This defines a `ServiceMonitor` resource that scrapes the metrics exposed by the `prometheus-example-app` sample service, which includes the `version` metric.
4949

50+
[NOTE]
51+
====
52+
A `ServiceMonitor` resource in a user-defined namespace can only discover services in the same namespace. That is, the `namespaceSelector` field of the `ServiceMonitor` resource is always ignored.
53+
====
54+
5055
. Apply the configuration to the cluster:
5156
+
5257
[source,terminal]

0 commit comments

Comments
 (0)