From f17829c48b971a0507a47f14b0cae3950af249f7 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Sat, 6 Jul 2019 20:11:27 +0200 Subject: [PATCH] Create jsonnet files to create output files This allows to create YAML files with rules and JSON files with dashboard descriptions. Signed-off-by: beorn7 --- docs/node-mixin/alerts.jsonnet | 1 + docs/node-mixin/dashboards.jsonnet | 6 ++++++ docs/node-mixin/rules.jsonnet | 1 + 3 files changed, 8 insertions(+) create mode 100644 docs/node-mixin/alerts.jsonnet create mode 100644 docs/node-mixin/dashboards.jsonnet create mode 100644 docs/node-mixin/rules.jsonnet diff --git a/docs/node-mixin/alerts.jsonnet b/docs/node-mixin/alerts.jsonnet new file mode 100644 index 00000000..75e7c1b2 --- /dev/null +++ b/docs/node-mixin/alerts.jsonnet @@ -0,0 +1 @@ +std.manifestYamlDoc((import 'mixin.libsonnet').prometheusAlerts) diff --git a/docs/node-mixin/dashboards.jsonnet b/docs/node-mixin/dashboards.jsonnet new file mode 100644 index 00000000..9d913ed3 --- /dev/null +++ b/docs/node-mixin/dashboards.jsonnet @@ -0,0 +1,6 @@ +local dashboards = (import 'mixin.libsonnet').grafanaDashboards; + +{ + [name]: dashboards[name] + for name in std.objectFields(dashboards) +} diff --git a/docs/node-mixin/rules.jsonnet b/docs/node-mixin/rules.jsonnet new file mode 100644 index 00000000..dbe13f41 --- /dev/null +++ b/docs/node-mixin/rules.jsonnet @@ -0,0 +1 @@ +std.manifestYamlDoc((import 'mixin.libsonnet').prometheusRules)