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>
This commit is contained in:
Jetchko Jekov 2020-04-10 10:05:18 +02:00 committed by GitHub
parent 8b3acf2ded
commit ec392c3828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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