From f8bd9b89f7922b0341c71c0e42d58c5fd1b5086b Mon Sep 17 00:00:00 2001 From: Frederic Branczyk <fbranczyk@gmail.com> Date: Tue, 9 Apr 2019 15:28:44 +0200 Subject: [PATCH] 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. --- jsonnet/kube-prometheus/prometheus/prometheus.libsonnet | 7 ------- 1 file changed, 7 deletions(-) diff --git a/jsonnet/kube-prometheus/prometheus/prometheus.libsonnet b/jsonnet/kube-prometheus/prometheus/prometheus.libsonnet index ba2adb05..57c54109 100644 --- a/jsonnet/kube-prometheus/prometheus/prometheus.libsonnet +++ b/jsonnet/kube-prometheus/prometheus/prometheus.libsonnet @@ -283,13 +283,6 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet'; }, bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', 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 // https://github.com/google/cadvisor/issues/1925. { -- GitLab