Add metrics_path label to kubelet servicemonitor endpoints (#277)

* Add metrics_path label to kubelet servicemonitor endpoints

* Set kubelet metric_path label in jsonnet

* Add generated kubelet servicemonitor
This commit is contained in:
Jake Utley
2019-10-24 00:16:57 -07:00
committed by Frederic Branczyk
parent a7884a6c18
commit 4e5b454ba8
5 changed files with 82 additions and 4 deletions

View File

@@ -11,6 +11,10 @@ spec:
honorLabels: true
interval: 30s
port: https-metrics
relabelings:
- sourceLabels:
- __metrics_path__
targetLabel: metrics_path
scheme: https
tlsConfig:
insecureSkipVerify: true
@@ -24,6 +28,10 @@ spec:
- __name__
path: /metrics/cadvisor
port: https-metrics
relabelings:
- sourceLabels:
- __metrics_path__
targetLabel: metrics_path
scheme: https
tlsConfig:
insecureSkipVerify: true