Browse Source

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>
pull/1429/head
beorn7 5 years ago
parent
commit
f17829c48b
  1. 1
      docs/node-mixin/alerts.jsonnet
  2. 6
      docs/node-mixin/dashboards.jsonnet
  3. 1
      docs/node-mixin/rules.jsonnet

1
docs/node-mixin/alerts.jsonnet

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

6
docs/node-mixin/dashboards.jsonnet

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

1
docs/node-mixin/rules.jsonnet

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