Skip to content

Commit d461051

Browse files
committed
Add grafanaDashboardFolder to 3rd party mixins.
Signed-off-by: Tom Wilkie <[email protected]>
1 parent 2c35184 commit d461051

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

prometheus-ksonnet/mixins.libsonnet

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
mixins+:: {
44
kubernetes:
55
(import 'kubernetes-mixin/mixin.libsonnet') {
6+
grafanaDashboardFolder: 'Kubernetes',
7+
68
_config+:: {
79
cadvisorSelector: 'job="kube-system/cadvisor"',
810
kubeletSelector: 'job="kube-system/kubelet"',
@@ -18,20 +20,26 @@
1820

1921
prometheus:
2022
(import 'prometheus-mixin/mixin.libsonnet') {
23+
grafanaDashboardFolder: 'Prometheus',
24+
2125
_config+:: {
2226
prometheusSelector: 'job="default/prometheus"',
2327
},
2428
},
2529

2630
alertmanager:
2731
(import 'alertmanager-mixin/mixin.libsonnet') {
32+
grafanaDashboardFolder: 'Alertmanager',
33+
2834
_config+:: {
2935
alertmanagerSelector: 'job="default/alertmanager"',
3036
},
3137
},
3238

3339
node_exporter:
3440
(import 'node-mixin/mixin.libsonnet') {
41+
grafanaDashboardFolder: 'node_exporter',
42+
3543
_config+:: {
3644
nodeExporterSelector: 'job="%s/node-exporter"' % $._config.namespace, // Also used by node-mixin.
3745

0 commit comments

Comments
 (0)