Correct port usage of name instead of number.
This commit is contained in:
parent
754073318c
commit
8be46bccde
1 changed files with 20 additions and 20 deletions
|
@ -7,27 +7,27 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
postgres-operator.crunchydata.com/crunchy-postgres-exporter: "true"
|
postgres-operator.crunchydata.com/crunchy-postgres-exporter: 'true'
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchNames:
|
matchNames:
|
||||||
- peertube
|
- peertube
|
||||||
podMetricsEndpoints:
|
podMetricsEndpoints:
|
||||||
- port: "9187"
|
- port: "exporter"
|
||||||
# relabelings:
|
relabelings:
|
||||||
# - sourceLabels: [__meta_kubernetes_pod_container_port_number]
|
- sourceLabels: [__meta_kubernetes_pod_container_port_number]
|
||||||
# action: keep
|
action: keep
|
||||||
# regex: "9187"
|
regex: "9187"
|
||||||
# - sourceLabels: [__meta_kubernetes_namespace]
|
- sourceLabels: [__meta_kubernetes_namespace]
|
||||||
# targetLabel: kubernetes_namespace
|
targetLabel: kubernetes_namespace
|
||||||
# - sourceLabels: [__meta_kubernetes_pod_name]
|
- sourceLabels: [__meta_kubernetes_pod_name]
|
||||||
# targetLabel: pod
|
targetLabel: pod
|
||||||
# - sourceLabels: [__meta_kubernetes_namespace, __meta_kubernetes_pod_label_postgres_operator_crunchydata_com_cluster]
|
- sourceLabels: [__meta_kubernetes_namespace, __meta_kubernetes_pod_label_postgres_operator_crunchydata_com_cluster]
|
||||||
# separator: ":"
|
separator: ":"
|
||||||
# targetLabel: pg_cluster
|
targetLabel: pg_cluster
|
||||||
# replacement: "$1$2"
|
replacement: "$1$2"
|
||||||
# - sourceLabels: [__meta_kubernetes_pod_ip]
|
- sourceLabels: [__meta_kubernetes_pod_ip]
|
||||||
# targetLabel: ip
|
targetLabel: ip
|
||||||
# - sourceLabels: [__meta_kubernetes_pod_label_postgres_operator_crunchydata_com_instance]
|
- sourceLabels: [__meta_kubernetes_pod_label_postgres_operator_crunchydata_com_instance]
|
||||||
# targetLabel: deployment
|
targetLabel: deployment
|
||||||
# - sourceLabels: [__meta_kubernetes_pod_label_postgres_operator_crunchydata_com_role]
|
- sourceLabels: [__meta_kubernetes_pod_label_postgres_operator_crunchydata_com_role]
|
||||||
# targetLabel: role
|
targetLabel: role
|
||||||
|
|
Reference in a new issue