Skip to content

Commit 7301893

Browse files
authored
Merge pull request #35289 from bison/MON-1756
MON-1756: Document excluding projects from user-workload monitoring
2 parents 967a40e + 3832e0f commit 7301893

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * monitoring/enabling-monitoring-for-user-defined-projects.adoc
4+
5+
[id="excluding-a-user-defined-project-from-monitoring_{context}"]
6+
= Excluding a user-defined project from monitoring
7+
8+
Individual user-defined projects can be excluded from user workload monitoring. To do so, simply add the `openshift.io/user-monitoring` label to the project's namespace with a value of `false`.
9+
10+
.Procedure
11+
12+
. Add the label to the project namespace:
13+
+
14+
[source,terminal]
15+
----
16+
$ oc label namespace my-project 'openshift.io/user-monitoring=false'
17+
----
18+
+
19+
. To re-enable monitoring, remove the label from the namespace:
20+
+
21+
[source,terminal]
22+
----
23+
$ oc label namespace my-project 'openshift.io/user-monitoring-'
24+
----
25+
+
26+
[NOTE]
27+
====
28+
If there were any active monitoring targets for the project, it may take a few minutes for Prometheus to stop scraping them after adding the label.
29+
====

monitoring/enabling-monitoring-for-user-defined-projects.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ include::modules/monitoring-granting-users-permission-to-configure-monitoring-fo
3232
// Accessing metrics from outside the cluster for custom applications
3333
include::modules/accessing-metrics-outside-cluster.adoc[leveloffset=+1]
3434

35+
// Excluding a user-defined project from monitoring
36+
include::modules/monitoring-excluding-a-user-defined-project-from-monitoring.adoc[leveloffset=+1]
37+
3538
// Disabling monitoring for user-defined projects
3639
include::modules/monitoring-disabling-monitoring-for-user-defined-projects.adoc[leveloffset=+1]
3740

0 commit comments

Comments
 (0)