• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..06-Aug-2021-

alerts/H06-Aug-2021-317316

dashboards/H06-Aug-2021-529514

rules/H06-Aug-2021-110109

.gitignoreH A D06-Aug-202151 54

MakefileH A D06-Aug-2021970 2920

README.mdH A D06-Aug-20211.3 KiB4333

alerts.jsonnetH A D06-Aug-202165 21

config.libsonnetH A D06-Aug-20212.7 KiB6051

dashboards.jsonnetH A D06-Aug-2021140 75

go.modH A D06-Aug-2021241 107

go.sumH A D06-Aug-2021108.7 KiB1,1261,125

jsonnetfile.jsonH A D06-Aug-2021678 3433

mixin.libsonnetH A D06-Aug-2021145 54

rules.jsonnetH A D06-Aug-202164 21

tools.goH A D06-Aug-2021971 277

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