A set of Grafana dashboards, Prometheus rules and alerts for Vitess, packaged together in a reusable and extensible bundle.
-
Go (programming language)
-
Install the go tools:
make tools
,jb
,jsonnet
,jsonnetfmt
, andpromtool
should now be in$GOPATH/bin
. -
Install the dependencies by running:
jb install
Customize config.libsonnet
based on your setup. Example: specify the dataSource
name (default to Prometheus_Vitess
). You can then generate:
-
Prometheus alerts:
$ make prometheus_alerts.yaml
(Note: This files is empty because the current version of the mixin uses Grafana Alerts) -
Prometheus rules:
$ make prometheus_rules.yaml
-
Grafana dashboard:
$ ENV='prod' make dashboards_out
(Supported environments aredev
andprod
).
The prometheus_alerts.yaml
and prometheus_rules.yaml
file then need to passed to your Prometheus server, and the files in dashboards_out
need to be imported into you Grafana server.
If you want to contribute please read Vitess mixin quickstart guide
- For more information about monitoring mixins, see this design doc.
- For more motivation, see "The RED Method: How to instrument your services" talk from CloudNativeCon Austin.