kube-prometheus: Fix grafana label

This commit is contained in:
Frederic Branczyk
2019-01-09 10:00:18 +01:00
parent 1f72addcf7
commit c18d8a4d6e

View File

@@ -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: [
{