Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 05-Jun-2021 | - | ||||
.gitignore | H A D | 05-Jun-2021 | 51 | 5 | 4 | |
Makefile | H A D | 05-Jun-2021 | 826 | 26 | 18 | |
README.md | H A D | 05-Jun-2021 | 1.4 KiB | 37 | 28 | |
alerts.jsonnet | H A D | 05-Jun-2021 | 65 | 2 | 1 | |
alerts.libsonnet | H A D | 05-Jun-2021 | 18 KiB | 414 | 413 | |
config.libsonnet | H A D | 05-Jun-2021 | 2.1 KiB | 49 | 43 | |
dashboards.jsonnet | H A D | 05-Jun-2021 | 140 | 7 | 5 | |
dashboards.libsonnet | H A D | 05-Jun-2021 | 13.7 KiB | 390 | 373 | |
go.mod | H A D | 05-Jun-2021 | 182 | 9 | 6 | |
go.sum | H A D | 05-Jun-2021 | 4.4 KiB | 50 | 49 | |
jsonnetfile.json | H A D | 05-Jun-2021 | 460 | 25 | 24 | |
mixin.libsonnet | H A D | 05-Jun-2021 | 92 | 4 | 3 | |
tools.go | H A D | 05-Jun-2021 | 920 | 26 | 6 |
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