Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge node-mixin and node-observ-lib #31

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
14 changes: 7 additions & 7 deletions docs/node-mixin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ fmt:
find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \
xargs -n 1 -- $(JSONNET_FMT) -i

node_alerts.yaml: mixin.libsonnet config.libsonnet $(wildcard alerts/*)
jsonnet -S alerts.jsonnet > $@
node_alerts.yaml: mixin.libsonnet lib/linux/config.libsonnet $(wildcard lib/linux/alerts/*)
jsonnet -J vendor -S -e 'std.manifestYamlDoc((import "mixin.libsonnet").prometheusAlerts)' > $@

node_rules.yaml: mixin.libsonnet config.libsonnet $(wildcard rules/*)
jsonnet -S rules.jsonnet > $@
node_rules.yaml: mixin.libsonnet lib/linux/config.libsonnet $(wildcard lib/linux/rules/*)
jsonnet -J vendor -S -e 'std.manifestYamlDoc((import "mixin.libsonnet").prometheusRules)' > $@

dashboards_out: mixin.libsonnet config.libsonnet $(wildcard dashboards/*)
@mkdir -p dashboards_out
jsonnet -J vendor -m dashboards_out dashboards.jsonnet
dashboards_out: mixin.libsonnet lib/linux/config.libsonnet lib/linux/dashboards.libsonnet $(wildcard lib/linux/*)
@mkdir -p dashboards_out/linux
jsonnet -J vendor -m dashboards_out/linux -e '(import "mixin.libsonnet").grafanaDashboards'

lint: node_alerts.yaml node_rules.yaml
find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \
Expand Down
1 change: 0 additions & 1 deletion docs/node-mixin/alerts.jsonnet

This file was deleted.

419 changes: 0 additions & 419 deletions docs/node-mixin/alerts/alerts.libsonnet

This file was deleted.

117 changes: 0 additions & 117 deletions docs/node-mixin/config.libsonnet

This file was deleted.

6 changes: 0 additions & 6 deletions docs/node-mixin/dashboards.jsonnet

This file was deleted.

2 changes: 0 additions & 2 deletions docs/node-mixin/dashboards/dashboards.libsonnet

This file was deleted.

165 changes: 0 additions & 165 deletions docs/node-mixin/dashboards/disk.libsonnet

This file was deleted.

Loading
Loading