Skip to content
Snippets Groups Projects
Unverified Commit 5ff20b17 authored by Paweł Krupa's avatar Paweł Krupa Committed by GitHub
Browse files

Merge pull request #1630 from PhilipGough/fix-1603

parents 3f1323da 58fa27a4
No related branches found
No related tags found
No related merge requests found
...@@ -288,7 +288,6 @@ function(params) { ...@@ -288,7 +288,6 @@ function(params) {
}, },
podMetricsEndpoints: [{ podMetricsEndpoints: [{
honorLabels: true, honorLabels: true,
targetPort: 10249,
relabelings: [ relabelings: [
{ {
action: 'replace', action: 'replace',
...@@ -297,6 +296,13 @@ function(params) { ...@@ -297,6 +296,13 @@ function(params) {
sourceLabels: ['__meta_kubernetes_pod_node_name'], sourceLabels: ['__meta_kubernetes_pod_node_name'],
targetLabel: 'instance', targetLabel: 'instance',
}, },
{
action: 'replace',
regex: '(.*)',
replacement: '$1:10249',
targetLabel: '__address__',
sourceLabels: ['__meta_kubernetes_pod_ip'],
},
], ],
}], }],
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment