We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cnpg_pg_
pg_
1 parent 434e07f commit f9906b9Copy full SHA for f9906b9
manifests/postgres/components/metrics/kustomization.yaml
@@ -16,6 +16,11 @@ patches:
16
- op: add
17
path: /spec/monitoring/podMonitorRelabelings
18
value:
19
+ - sourceLabels: [__name__]
20
+ regex: cnpg_pg_(.+)
21
+ targetLabel: __name__
22
+ replacement: pg_${1}
23
+ action: replace
24
- sourceLabels: ["__meta_kubernetes_pod_label_cnpg_io_cluster"]
25
targetLabel: cluster
26
action: replace
0 commit comments