We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b9aa36 + 35a61d9 commit 125fb56Copy full SHA for 125fb56
jsonnet/kube-prometheus/components/k8s-control-plane.libsonnet
@@ -288,7 +288,6 @@ function(params) {
288
},
289
podMetricsEndpoints: [{
290
honorLabels: true,
291
- targetPort: 10249,
292
relabelings: [
293
{
294
action: 'replace',
@@ -297,6 +296,13 @@ function(params) {
297
296
sourceLabels: ['__meta_kubernetes_pod_node_name'],
298
targetLabel: 'instance',
299
+ {
300
+ action: 'replace',
301
+ regex: '(.*)',
302
+ replacement: '$1:10249',
303
+ targetLabel: '__address__',
304
+ sourceLabels: ['__meta_kubernetes_pod_ip'],
305
+ },
306
],
307
}],
308
0 commit comments