mirror of
https://github.com/monitoring-mixins/website.git
synced 2024-12-14 11:37:31 +00:00
Fix: generate alerts and dashboards
This commit is contained in:
parent
b28315502b
commit
a7997120f3
1 changed files with 4 additions and 2 deletions
|
@ -147,8 +147,10 @@ $ jb install github.com/kubernetes-monitoring/kubernetes-mixin
|
||||||
Generate the alerts, rules and dashboards:
|
Generate the alerts, rules and dashboards:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ jsonnet -J vendor -S -e 'std.manifestYamlDoc((import "mixin.libsonnet").prometheusAlerts)' > alerts.yml
|
$ mkdir files
|
||||||
$ jsonnet -J vendor -S -e 'std.manifestYamlDoc((import "mixin.libsonnet").prometheusRules)' >files/rules.yml
|
$ jsonnet -J vendor -S -e 'std.manifestYamlDoc((import "mixin.libsonnet").prometheusAlerts)' > files/alerts.yml
|
||||||
|
$ jsonnet -J vendor -S -e 'std.manifestYamlDoc((import "mixin.libsonnet").prometheusRules)' > files/rules.yml
|
||||||
|
$ mkdir files/dashboards
|
||||||
$ jsonnet -J vendor -m files/dashboards -e '(import "mixin.libsonnet").grafanaDashboards'
|
$ jsonnet -J vendor -m files/dashboards -e '(import "mixin.libsonnet").grafanaDashboards'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue