Skip to content

Commit 125fb56

Browse files
authored
Merge pull request prometheus-operator#1715 from yogeek/backport-1630-kubeproxy-monitor-0-10
Backport PodMonitor for kube-proxy to 0.10 release
2 parents 5b9aa36 + 35a61d9 commit 125fb56

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

jsonnet/kube-prometheus/components/k8s-control-plane.libsonnet

+7-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ function(params) {
288288
},
289289
podMetricsEndpoints: [{
290290
honorLabels: true,
291-
targetPort: 10249,
292291
relabelings: [
293292
{
294293
action: 'replace',
@@ -297,6 +296,13 @@ function(params) {
297296
sourceLabels: ['__meta_kubernetes_pod_node_name'],
298297
targetLabel: 'instance',
299298
},
299+
{
300+
action: 'replace',
301+
regex: '(.*)',
302+
replacement: '$1:10249',
303+
targetLabel: '__address__',
304+
sourceLabels: ['__meta_kubernetes_pod_ip'],
305+
},
300306
],
301307
}],
302308
},

0 commit comments

Comments
 (0)