Skip to content

Commit 962b864

Browse files
committed
Incorporated Jessica's comments
1 parent a98b8b6 commit 962b864

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Currently, the {product} Operator does not support creating a `ServiceMonitor` c
2525
apiVersion: monitoring.coreos.com/v1
2626
kind: ServiceMonitor
2727
metadata:
28-
name: <service-monitor-name> <1>
28+
name: developer-hub-service-monitor <1>
2929
namespace: {my-product-namespace} <2>
3030
labels:
3131
app.kubernetes.io/instance: {my-product-cr-name} <3>
@@ -36,7 +36,7 @@ spec:
3636
- {my-product-namespace} <2>
3737
selector:
3838
matchLabels:
39-
app.kubernetes.io/instance: {my-product-cr-name} <3>
39+
app.kubernetes.io/instance: developer-hub <4>
4040
app.kubernetes.io/name: {product-custom-resource-type}
4141
endpoints:
4242
- port: http-metrics
@@ -45,6 +45,12 @@ spec:
4545
<1> The name of your ServiceMonitor resource, for example, `developer-hub-service-monitor`.
4646
<2> The namespace where your ServiceMonitor lives and where your {product-very-short} instance is installed.
4747
<3> The name of the {ocp-short} project where your {product} instance is running.
48+
<4> The name of your {product-very-short} deployment.
49+
[NOTE]
50+
+
51+
====
52+
`spec.selector.matchLabels` configuration must match the labels of your {product-very-short} installation. To confirm the label names, go to Project > Services and get the labels for `backstage-developer-hub`.
53+
====
4854

4955
. Apply the `ServiceMonitor` CR by running the following command:
5056
+

0 commit comments

Comments
 (0)