Merge pull request #1715 from yogeek/backport-1630-kubeproxy-monitor-0-10

Backport PodMonitor for kube-proxy to 0.10 release
This commit is contained in:
Arthur Silva Sens
2022-04-09 08:31:59 +01:00
committed by GitHub

View File

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