Skip to content

Commit a3ef01f

Browse files
committed
Applied attributes
1 parent 9b3a3f7 commit a3ef01f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,30 @@ Currently, the {product} Operator does not support creating a `ServiceMonitor` c
2020

2121
. Create the `ServiceMonitor` CR as a YAML file:
2222
+
23-
[source,yaml]
23+
[source,yaml,subs="+attributes"]
2424
----
2525
apiVersion: monitoring.coreos.com/v1
2626
kind: ServiceMonitor
2727
metadata:
2828
name: <service-monitor-name> <1>
29-
namespace: <namespace> <2>
29+
namespace: {my-product-namespace} <2>
3030
labels:
3131
app.kubernetes.io/instance: <service-monitor-name> <1>
32-
app.kubernetes.io/name: backstage
32+
app.kubernetes.io/name: {product-custom-resource-type}
3333
spec:
3434
namespaceSelector:
3535
matchNames:
36-
- <namespace> <2>
36+
- {my-product-namespace} <2>
3737
selector:
3838
matchLabels:
39-
app.kubernetes.io/instance: <custom_resource_name> <3>
40-
app.kubernetes.io/name: backstage
39+
app.kubernetes.io/instance: {my-product-cr-name} <3>
40+
app.kubernetes.io/name: {product-custom-resource-type}
4141
endpoints:
4242
- port: http-metrics
4343
path: '/metrics'
4444
----
4545
<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`.
46+
<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.
4848

4949
. Apply the `ServiceMonitor` CR by running the following command:

0 commit comments

Comments
 (0)