Skip to content

Commit f9906b9

Browse files
committed
feat(postgres): rename metrics from cnpg_pg_ to pg_
ref: #18
1 parent 434e07f commit f9906b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

manifests/postgres/components/metrics/kustomization.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ patches:
1616
- op: add
1717
path: /spec/monitoring/podMonitorRelabelings
1818
value:
19+
- sourceLabels: [__name__]
20+
regex: cnpg_pg_(.+)
21+
targetLabel: __name__
22+
replacement: pg_${1}
23+
action: replace
1924
- sourceLabels: ["__meta_kubernetes_pod_label_cnpg_io_cluster"]
2025
targetLabel: cluster
2126
action: replace

0 commit comments

Comments
 (0)