Skip to content

Commit 2c35184

Browse files
authored
Add grafanaDashboardFolder fields to mixins. (#236)
Signed-off-by: Tom Wilkie <[email protected]>
1 parent 5490026 commit 2c35184

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
.DS_Store
2+
vendor
3+
jsonnetfile.lock.json
4+
*.zip

consul-mixin/mixin.libsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
grafanaDashboardFolder: 'Consul',
23
_config+:: {
34
consul_replicas: 3,
45
},

jaeger-mixin/mixin.libsonnet

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
(import 'dashboards.libsonnet') +
2-
(import 'alerts.libsonnet')
2+
(import 'alerts.libsonnet') {
3+
grafanaDashboardFolder: 'Jaeger',
4+
}

memcached-mixin/dashboards.jsonnet

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
local mixin = import 'mixin.libsonnet';
2+
3+
{
4+
[name]: std.manifestJsonEx(mixin.grafanaDashboards[name], ' ')
5+
for name in std.objectFields(mixin.grafanaDashboards)
6+
}

memcached-mixin/mixin.libsonnet

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
(import 'dashboards.libsonnet')
1+
(import 'dashboards.libsonnet') {
2+
grafanaDashboardFolder: 'Memcached',
3+
}

0 commit comments

Comments
 (0)