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

kube-prometheus: Don't drop non-pod metrics

These metrics can still be valuable to troubleshoot components running
in cgroups on the host, outside the scope of Kubernetes pods.
parent 7e4381ca
No related branches found
No related tags found
No related merge requests found
...@@ -283,13 +283,6 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet'; ...@@ -283,13 +283,6 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
}, },
bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token',
metricRelabelings: [ metricRelabelings: [
// Drop container_* metrics with no image.
{
sourceLabels: ['__name__', 'image'],
regex: 'container_([a-z_]+);',
action: 'drop',
},
// Drop a bunch of metrics which are disabled but still sent, see // Drop a bunch of metrics which are disabled but still sent, see
// https://github.com/google/cadvisor/issues/1925. // https://github.com/google/cadvisor/issues/1925.
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment