Debian Codegraph @

contrib/redis-mixin/README.md

raw symbols SCIP
1 # Redis Mixin
2
3 _This is a work in progress. We aim for it to become a good role model for alerts
4 and dashboards eventually, but it is not quite there yet._
5
6 The Redis Mixin is a set of configurable, reusable, and extensible alerts and
7 dashboards based on the metrics exported by the Redis Exporter. The mixin creates
8 recording and alerting rules for Prometheus and suitable dashboard descriptions
9 for Grafana.
10
11 To use them, you need to have `mixtool` and `jsonnetfmt` installed. If you
12 have a working Go development environment, it's easiest to run the following:
13 ```bash
14 # go >= 1.17
15 # Using `go get` to install binaries is deprecated.
16 $ go install github.com/monitoring-mixins/mixtool/cmd/mixtool@latest
17 $ go install github.com/google/go-jsonnet/cmd/jsonnet@latest
18
19 # go < 1.17
20 $ go get github.com/monitoring-mixins/mixtool/cmd/mixtool
21 $ go get github.com/google/go-jsonnet/cmd/jsonnetfmt
22 ```
23
24 You can then build the Prometheus rules files `alerts.yaml` and
25 `rules.yaml` and a directory `dashboard_out` with the JSON dashboard files
26 for Grafana:
27 ```bash
28 $ make build
29 ```
30
31 The mixin currently treats each redis instance independently - it has no notion of replication or clustering. We aim to support these concepts in future versions. The mixin dashboard is a fork of the one in the [contrib](contrib/) directory.
32
33 For more advanced uses of mixins, see
34 https://github.com/monitoring-mixins/docs.