From c18d8a4d6ead19edb1b7c4017ec7fd30936a865a Mon Sep 17 00:00:00 2001
From: Frederic Branczyk <fbranczyk@gmail.com>
Date: Wed, 9 Jan 2019 10:00:18 +0100
Subject: [PATCH] kube-prometheus: Fix grafana label

---
 jsonnet/kube-prometheus/kube-prometheus.libsonnet | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/jsonnet/kube-prometheus/kube-prometheus.libsonnet b/jsonnet/kube-prometheus/kube-prometheus.libsonnet
index b751ce71..4ff18371 100644
--- a/jsonnet/kube-prometheus/kube-prometheus.libsonnet
+++ b/jsonnet/kube-prometheus/kube-prometheus.libsonnet
@@ -15,13 +15,7 @@ local configMapList = k.core.v1.configMapList;
     namespace: k.core.v1.namespace.new($._config.namespace),
   },
   grafana+:: {
-    local serviceLabels = {
-      app: 'grafana',
-    },
     dashboardDefinitions: configMapList.new(super.dashboardDefinitions),
-    service+: {
-      labels+: serviceLabels,
-    },
     serviceMonitor: {
       apiVersion: 'monitoring.coreos.com/v1',
       kind: 'ServiceMonitor',
@@ -31,7 +25,9 @@ local configMapList = k.core.v1.configMapList;
       },
       spec: {
         selector: {
-          matchLabels: serviceLabels,
+          matchLabels: {
+            app: 'grafana',
+          },
         },
         endpoints: [
           {
-- 
GitLab