Skip to content

Commit 88d4c99

Browse files
committed
Changed the metrics
1 parent 4293411 commit 88d4c99

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,22 @@ 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: <project_name> # <2>
28+
name: rhdh
3029
labels:
3130
app.kubernetes.io/instance: <custom_resource_name>
3231
app.kubernetes.io/name: backstage
3332
spec:
3433
namespaceSelector:
3534
matchNames:
36-
- <project_name>
35+
- rhdh-by-operator
3736
selector:
3837
matchLabels:
39-
rhdh.redhat.com/app: backstage-<custom_resource_name>
38+
app.kubernetes.io/instance: <custom_resource_name>
39+
app.kubernetes.io/name: backstage
4040
endpoints:
4141
- port: http-metrics
4242
path: '/metrics'
4343
----
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.
4644

4745
. Apply the `ServiceMonitor` CR by running the following command:
4846
+

0 commit comments

Comments
 (0)