Skip to content

Commit

Permalink
Merge node-observ-lib to node-mixin
Browse files Browse the repository at this point in the history
Signed-off-by: Vitaly Zhuravlev <[email protected]>
  • Loading branch information
v-zhuravlev committed Nov 1, 2024
1 parent 89e2059 commit ccc0136
Show file tree
Hide file tree
Showing 79 changed files with 135 additions and 5,954 deletions.
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.

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

This file was deleted.

123 changes: 0 additions & 123 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

0 comments on commit ccc0136

Please sign in to comment.