kube-prometheus: Fix grafana label
This commit is contained in:
@@ -15,13 +15,7 @@ local configMapList = k.core.v1.configMapList;
|
|||||||
namespace: k.core.v1.namespace.new($._config.namespace),
|
namespace: k.core.v1.namespace.new($._config.namespace),
|
||||||
},
|
},
|
||||||
grafana+:: {
|
grafana+:: {
|
||||||
local serviceLabels = {
|
|
||||||
app: 'grafana',
|
|
||||||
},
|
|
||||||
dashboardDefinitions: configMapList.new(super.dashboardDefinitions),
|
dashboardDefinitions: configMapList.new(super.dashboardDefinitions),
|
||||||
service+: {
|
|
||||||
labels+: serviceLabels,
|
|
||||||
},
|
|
||||||
serviceMonitor: {
|
serviceMonitor: {
|
||||||
apiVersion: 'monitoring.coreos.com/v1',
|
apiVersion: 'monitoring.coreos.com/v1',
|
||||||
kind: 'ServiceMonitor',
|
kind: 'ServiceMonitor',
|
||||||
@@ -31,7 +25,9 @@ local configMapList = k.core.v1.configMapList;
|
|||||||
},
|
},
|
||||||
spec: {
|
spec: {
|
||||||
selector: {
|
selector: {
|
||||||
matchLabels: serviceLabels,
|
matchLabels: {
|
||||||
|
app: 'grafana',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
endpoints: [
|
endpoints: [
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user