Commit a341600
committed
Use scrapeClass for service monitors
As documented in [1], the platform Prometheus servers are configured
with a scrape class named `tls-client-certificate-auth` which
automatically injects the client certificate and key files for mutual
TLS into the scrape configuration of the service.
This commit also removes the `namespaceSelector` field of the operator's
service monitor: it isn't required when the service monitor and service
are located in the same namespace. It also adjusts the `jobLabel` value
to refer to the `app` label of the service.
[1] https://rhobs-handbook.netlify.app/products/openshiftmonitoring/collecting_metrics.md/#configuring-prometheus-to-scrape-metrics
Signed-off-by: Simon Pasquier <[email protected]>1 parent adfd7d1 commit a341600
File tree
2 files changed
+5
-13
lines changed- manifests
2 files changed
+5
-13
lines changedLines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
23 | 21 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 22 | + | |
| 23 | + | |
30 | 24 | | |
31 | 25 | | |
32 | 26 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
112 | | - | |
113 | | - | |
114 | 111 | | |
115 | 112 | | |
116 | 113 | | |
117 | 114 | | |
| 115 | + | |
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
| |||
0 commit comments