Skip to content
Snippets Groups Projects
Unverified Commit f0955e05 authored by Frederic Branczyk's avatar Frederic Branczyk Committed by GitHub
Browse files

Merge pull request #623 from brancz/add-kubelet-probes-metrics

Add scraping of endpoint for kubelet probe metrics
parents df3bfc65 7c35752e
Branches
Tags
No related merge requests found
...@@ -324,6 +324,23 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet'; ...@@ -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: { selector: {
matchLabels: { matchLabels: {
......
...@@ -68,6 +68,18 @@ spec: ...@@ -68,6 +68,18 @@ spec:
scheme: https scheme: https
tlsConfig: tlsConfig:
insecureSkipVerify: true 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 jobLabel: k8s-app
namespaceSelector: namespaceSelector:
matchNames: matchNames:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment