Merge pull request #1630 from PhilipGough/fix-1603

This commit is contained in:
Paweł Krupa 2022-02-16 21:46:08 +01:00 committed by GitHub
commit 5ff20b1718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {
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'],
},
], ],
}], }],
}, },