Skip to content

Commit fa3ab67

Browse files
committed
Incorporated Jessica's and Lindsey's comments
1 parent 35c3071 commit fa3ab67

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

modules/observe/proc-admin-enabling-metrics-ocp-operator.adoc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,26 @@ Currently, the {product} Operator does not support creating a `ServiceMonitor` c
2525
apiVersion: monitoring.coreos.com/v1
2626
kind: ServiceMonitor
2727
metadata:
28-
name: rhdh
28+
name: <service-monitor-name> <1>
29+
namespace: <namespace> <2>
2930
labels:
30-
app.kubernetes.io/instance: <custom_resource_name>
31+
app.kubernetes.io/instance: <service-monitor-name> <1>
3132
app.kubernetes.io/name: backstage
3233
spec:
3334
namespaceSelector:
3435
matchNames:
35-
- rhdh-by-operator
36+
- <namespace> <2>
3637
selector:
3738
matchLabels:
38-
app.kubernetes.io/instance: <custom_resource_name>
39+
app.kubernetes.io/instance: <custom_resource_name> <3>
3940
app.kubernetes.io/name: backstage
4041
endpoints:
4142
- port: http-metrics
4243
path: '/metrics'
4344
----
45+
<1> The name of your ServiceMonitor resource, for example, `developer-hub-service-monitor`.
46+
<2> The namespace where your ServiceMonitor lives and where your {product-very-short} instance is installed, for example, `rhdh-operator`.
47+
<3> The name of the {ocp-short} project where your {product} instance is running.
4448

4549
. Apply the `ServiceMonitor` CR by running the following command:
4650
+

0 commit comments

Comments
 (0)