Skip to content
Snippets Groups Projects
Unverified Commit 7c35752e authored by Frederic Branczyk's avatar Frederic Branczyk
Browse files

Add scraping of endpoint for kubelet probe metrics

parent 6771c9bc
Branches
Tags
No related merge requests found
......@@ -324,6 +324,23 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
},
],
},
{
port: 'https-metrics',
scheme: 'https',
path: '/metrics/probes',
interval: '30s',
honorLabels: true,
tlsConfig: {
insecureSkipVerify: true,
},
bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token',
relabelings: [
{
sourceLabels: ['__metrics_path__'],
targetLabel: 'metrics_path',
},
],
},
],
selector: {
matchLabels: {
......
......@@ -68,6 +68,18 @@ spec:
scheme: https
tlsConfig:
insecureSkipVerify: true
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
honorLabels: true
interval: 30s
path: /metrics/probes
port: https-metrics
relabelings:
- sourceLabels:
- __metrics_path__
targetLabel: metrics_path
scheme: https
tlsConfig:
insecureSkipVerify: true
jobLabel: k8s-app
namespaceSelector:
matchNames:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment