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 b569555Copy full SHA for b569555
manifests/postgres/components/metrics/kustomization.yaml
@@ -22,6 +22,15 @@ patches:
22
- sourceLabels: ["__meta_kubernetes_pod_name"]
23
targetLabel: instance
24
action: replace
25
+
26
+ - op: add
27
+ path: /spec/monitoring/podMonitorMetricRelabelings
28
+ value:
29
+ - sourceLabels: [__name__]
30
+ regex: cnpg_pg_(.+)
31
+ targetLabel: __name__
32
+ replacement: pg_${1}
33
+ action: replace
34
# yamllint enable rule:indentation
35
target:
36
group: postgresql.cnpg.io
0 commit comments