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 <beorn@grafana.com>
This commit is contained in:
beorn7 2019-07-06 20:11:27 +02:00
parent cd2981f1b8
commit f17829c48b
3 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1 @@
std.manifestYamlDoc((import 'mixin.libsonnet').prometheusAlerts)

View file

@ -0,0 +1,6 @@
local dashboards = (import 'mixin.libsonnet').grafanaDashboards;
{
[name]: dashboards[name]
for name in std.objectFields(dashboards)
}

View file

@ -0,0 +1 @@
std.manifestYamlDoc((import 'mixin.libsonnet').prometheusRules)