mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-29 18:31:27 +02:00
eks: Fix CNI metrics relabelings
Signed-off-by: Maxime Brunet <maxime.brunet@paytm.com>
This commit is contained in:
parent
4965e45c15
commit
3a98a3478c
@ -31,15 +31,6 @@
|
|||||||
name: 'cni-metrics-port',
|
name: 'cni-metrics-port',
|
||||||
port: 61678,
|
port: 61678,
|
||||||
targetPort: 61678,
|
targetPort: 61678,
|
||||||
relabelings: [
|
|
||||||
{
|
|
||||||
action: 'replace',
|
|
||||||
regex: '(.*)',
|
|
||||||
replacement: '$1',
|
|
||||||
sourceLabels: ['__meta_kubernetes_pod_node_name'],
|
|
||||||
targetLabel: 'instance',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
selector: { 'app.kubernetes.io/name': 'aws-node' },
|
selector: { 'app.kubernetes.io/name': 'aws-node' },
|
||||||
@ -74,6 +65,15 @@
|
|||||||
port: 'cni-metrics-port',
|
port: 'cni-metrics-port',
|
||||||
interval: '30s',
|
interval: '30s',
|
||||||
path: '/metrics',
|
path: '/metrics',
|
||||||
|
relabelings: [
|
||||||
|
{
|
||||||
|
action: 'replace',
|
||||||
|
regex: '(.*)',
|
||||||
|
replacement: '$1',
|
||||||
|
sourceLabels: ['__meta_kubernetes_pod_node_name'],
|
||||||
|
targetLabel: 'instance',
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user