1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix serviceMonitorKubelet's metricRelabelings (#225)

Signed-off-by: Jetchko Jekov <jetchko.jekov@gmail.com>
Signed-off-by: Cody Belcher <cody.t.belcher@gmail.com>
This commit is contained in:
Jetchko Jekov 2020-04-10 10:05:18 +02:00 committed by Cody Belcher
parent 79f720904f
commit 1b1f3b5831

View File

@ -27,13 +27,21 @@
prometheus+:: {
serviceMonitorKubelet+: {
spec+: {
metricRelabelings+: [
{
action: 'replace',
sourceLabels: ['node'],
targetLabel: 'instance',
},
],
endpoints: std.map(function(endpoint)
if endpoint.port == "https-metrics" then
endpoint {
metricRelabelings+: [
{
action: 'replace',
sourceLabels: ['node'],
targetLabel: 'instance',
},
],
}
else
endpoint,
super.endpoints
),
},
},
},