aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorbeorn7 <beorn@grafana.com>2019-07-06 20:30:40 +0200
committerbeorn7 <beorn@grafana.com>2019-07-06 20:30:40 +0200
commite5266c242e4f6243e33d7893f0bd76e2c895dc75 (patch)
tree722721e4104ba5fa89a135802fe0deb37879104f /docs
parentf2891703a54ca0f4b518c77bfd4dbe0df056a6bb (diff)
downloadprometheus_node_collector-e5266c242e4f6243e33d7893f0bd76e2c895dc75.tar.bz2
prometheus_node_collector-e5266c242e4f6243e33d7893f0bd76e2c895dc75.tar.xz
prometheus_node_collector-e5266c242e4f6243e33d7893f0bd76e2c895dc75.zip
Add README.md
Signed-off-by: beorn7 <beorn@grafana.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/node-mixin/README.md44
1 files changed, 44 insertions, 0 deletions
diff --git a/docs/node-mixin/README.md b/docs/node-mixin/README.md
new file mode 100644
index 0000000..489b599
--- /dev/null
+++ b/docs/node-mixin/README.md
@@ -0,0 +1,44 @@
1# Node Mixin
2
3_This is 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 create
8recording and alerting rules for Prometheus and suitable dashboard descriptions
9for Grafana.
10
11To use them, you need to have `jsonnet` (v0.13+) 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/jsonnet-bundler/jsonnet-bundler/cmd/jb
16```
17
18_Note: The make targets `lint` and `fmt` need the `jsonnetfmt` binary, which is
19currently not included in the Go implementation of `jsonnet`. For the time
20being, you have to install the [C++ version of
21jsonnetfmt](https://github.com/google/jsonnet) if you want to use `make lint`
22or `make fmt`._
23
24Next, install the dependencies by running the following command in this
25directory:
26```bash
27$ jb install
28```
29
30You can then build the Prometheus rules files `node_alerts.yaml` and
31`node_rules.yaml`:
32```bash
33$ make node_alerts.yaml node_rules.yaml
34```
35
36You can also build a directory `dashboard_out` with the JSON dashboard files
37for Grafana:
38```bash
39$ make dashboards_out
40```
41
42For more advanced uses of mixins, see
43https://github.com/monitoring-mixins/docs.
44