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

kube-prometheus: Fix grafana label

parent 1f72addc
No related branches found
No related tags found
No related merge requests found
......@@ -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: [
{
......
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