Skip to content

Commit a890adf

Browse files
committed
fixed merge conflicts
1 parent 90611a3 commit a890adf

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +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: <custom_resource_name> # <1>
29-
namespace: {my-product-namespace} # <2>
28+
name: <service-monitor-name> <1>
29+
namespace: {my-product-namespace} <2>
3030
labels:
31-
app.kubernetes.io/instance: <custom_resource_name>
32-
app.kubernetes.io/name: backstage
31+
app.kubernetes.io/instance: {my-product-cr-name} <3>
32+
app.kubernetes.io/name: {product-custom-resource-type}
3333
spec:
3434
namespaceSelector:
3535
matchNames:
36-
- {my-product-namespace}
36+
- {my-product-namespace} <2>
3737
selector:
3838
matchLabels:
39-
rhdh.redhat.com/app: backstage-<custom_resource_name>
39+
app.kubernetes.io/instance: <custom_resource_name>
40+
app.kubernetes.io/name: {product-custom-resource-type}
4041
endpoints:
4142
- port: http-metrics
4243
path: '/metrics'
4344
----
44-
<1> Replace `<custom_resource_name>` with the name of your {product} CR.
45-
<2> Replace `<project_name>` with the name of the {ocp-short} project where your {product} instance is running.
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.
47+
<3> The name of the {ocp-short} project where your {product} instance is running.
4648

4749
. Apply the `ServiceMonitor` CR by running the following command:
4850
+

0 commit comments

Comments
 (0)