Update PodMonitor for kube-proxy

Signed-off-by: yogeek <gdupin@gmail.com>
This commit is contained in:
Philip Gough
2022-02-10 09:45:27 +00:00
committed by yogeek
parent c8db3c85db
commit 3d416c6872

View File

@@ -282,7 +282,6 @@ function(params) {
},
podMetricsEndpoints: [{
honorLabels: true,
targetPort: 10249,
relabelings: [
{
action: 'replace',
@@ -291,6 +290,13 @@ function(params) {
sourceLabels: ['__meta_kubernetes_pod_node_name'],
targetLabel: 'instance',
},
{
action: 'replace',
regex: '(.*)',
replacement: '$1:10249',
targetLabel: '__address__',
sourceLabels: ['__meta_kubernetes_pod_ip'],
},
],
}],
},