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:
parent
8b3acf2ded
commit
ec392c3828
@ -27,13 +27,21 @@
|
|||||||
prometheus+:: {
|
prometheus+:: {
|
||||||
serviceMonitorKubelet+: {
|
serviceMonitorKubelet+: {
|
||||||
spec+: {
|
spec+: {
|
||||||
metricRelabelings+: [
|
endpoints: std.map(function(endpoint)
|
||||||
{
|
if endpoint.port == "https-metrics" then
|
||||||
action: 'replace',
|
endpoint {
|
||||||
sourceLabels: ['node'],
|
metricRelabelings+: [
|
||||||
targetLabel: 'instance',
|
{
|
||||||
},
|
action: 'replace',
|
||||||
],
|
sourceLabels: ['node'],
|
||||||
|
targetLabel: 'instance',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
|
else
|
||||||
|
endpoint,
|
||||||
|
super.endpoints
|
||||||
|
),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user