Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 06-Aug-2021 | - | ||||
alerts/ | H | 06-Aug-2021 | - | 317 | 316 | |
dashboards/ | H | 06-Aug-2021 | - | 529 | 514 | |
rules/ | H | 06-Aug-2021 | - | 110 | 109 | |
.gitignore | H A D | 06-Aug-2021 | 51 | 5 | 4 | |
Makefile | H A D | 06-Aug-2021 | 970 | 29 | 20 | |
README.md | H A D | 06-Aug-2021 | 1.3 KiB | 43 | 33 | |
alerts.jsonnet | H A D | 06-Aug-2021 | 65 | 2 | 1 | |
config.libsonnet | H A D | 06-Aug-2021 | 2.7 KiB | 60 | 51 | |
dashboards.jsonnet | H A D | 06-Aug-2021 | 140 | 7 | 5 | |
go.mod | H A D | 06-Aug-2021 | 241 | 10 | 7 | |
go.sum | H A D | 06-Aug-2021 | 108.7 KiB | 1,126 | 1,125 | |
jsonnetfile.json | H A D | 06-Aug-2021 | 678 | 34 | 33 | |
mixin.libsonnet | H A D | 06-Aug-2021 | 145 | 5 | 4 | |
rules.jsonnet | H A D | 06-Aug-2021 | 64 | 2 | 1 | |
tools.go | H A D | 06-Aug-2021 | 971 | 27 | 7 |
README.md
1# Node Mixin 2 3_This is a work in progress. We aim for it to become a good role model for alerts 4and dashboards eventually, but it is not quite there yet._ 5 6The Node Mixin is a set of configurable, reusable, and extensible alerts and 7dashboards based on the metrics exported by the Node Exporter. The mixin creates 8recording and alerting rules for Prometheus and suitable dashboard descriptions 9for Grafana. 10 11To use them, you need to have `jsonnet` (v0.16+) and `jb` installed. If you 12have a working Go development environment, it's easiest to run the following: 13```bash 14$ go get github.com/google/go-jsonnet/cmd/jsonnet 15$ go get github.com/google/go-jsonnet/cmd/jsonnetfmt 16$ go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb 17``` 18 19Next, install the dependencies by running the following command in this 20directory: 21```bash 22$ jb install 23``` 24 25You can then build the Prometheus rules files `node_alerts.yaml` and 26`node_rules.yaml`: 27```bash 28$ make node_alerts.yaml node_rules.yaml 29``` 30 31You can also build a directory `dashboard_out` with the JSON dashboard files 32for Grafana: 33```bash 34$ make dashboards_out 35``` 36 37Note that some of the generated dashboards require recording rules specified in 38the previously generated `node_rules.yaml`. 39 40For more advanced uses of mixins, see 41https://github.com/monitoring-mixins/docs. 42 43