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

..05-Jun-2021-

.gitignoreH A D05-Jun-202151 54

MakefileH A D05-Jun-2021826 2618

README.mdH A D05-Jun-20211.4 KiB3728

alerts.jsonnetH A D05-Jun-202165 21

alerts.libsonnetH A D05-Jun-202118 KiB414413

config.libsonnetH A D05-Jun-20212.1 KiB4943

dashboards.jsonnetH A D05-Jun-2021140 75

dashboards.libsonnetH A D05-Jun-202113.7 KiB390373

go.modH A D05-Jun-2021182 96

go.sumH A D05-Jun-20214.4 KiB5049

jsonnetfile.jsonH A D05-Jun-2021460 2524

mixin.libsonnetH A D05-Jun-202192 43

tools.goH A D05-Jun-2021920 266

README.md

1# Prometheus 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 Prometheus Mixin is a set of configurable, reusable, and extensible alerts
7and dashboards for Prometheus.
8
9To use them, you need to have `jsonnet` (v0.13+) and `jb` installed. If you
10have a working Go development environment, it's easiest to run the following:
11```bash
12$ go get github.com/google/go-jsonnet/cmd/jsonnet
13$ go get github.com/google/go-jsonnet/cmd/jsonnetfmt
14$ go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
15```
16
17_Note: The make targets `lint` and `fmt` need the `jsonnetfmt` binary, which is
18available from [v.0.16.0](https://github.com/google/jsonnet/releases/tag/v0.16.0) in the Go implementation of `jsonnet`. If your jsonnet version is older than 0.16.0 you have to either upgrade or install the [C++ version of
19jsonnetfmt](https://github.com/google/jsonnet) if you want to use `make lint`
20or `make fmt`._
21
22Next, install the dependencies by running the following command in this
23directory:
24```bash
25$ jb install
26```
27
28You can then build a `prometheus_alerts.yaml` with the alerts and a directory
29`dashboards_out` with the Grafana dashboard JSON files:
30```bash
31$ make prometheus_alerts.yaml
32$ make dashboards_out
33```
34
35For more advanced uses of mixins, see https://github.com/monitoring-mixins/docs.
36
37