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

..15-Oct-2021-

README.mdH A D15-Oct-2021883 2616

mixin.libsonnetH A D15-Oct-202139 KiB1,2941,291

test.yamlH A D15-Oct-20212.7 KiB8681

README.md

1# Prometheus Monitoring Mixin for etcd
2
3> NOTE: This project is *alpha* stage. Flags, configuration, behaviour and design may change significantly in following releases.
4
5A set of customisable Prometheus alerts for etcd.
6
7Instructions for use are the same as the [kubernetes-mixin](https://github.com/kubernetes-monitoring/kubernetes-mixin).
8
9## Background
10
11* For more information about monitoring mixins, see this [design doc](https://docs.google.com/document/d/1A9xvzwqnFVSOZ5fD3blKODXfsat5fg6ZhnKu9LK3lB4/edit#).
12
13## Testing alerts
14
15Make sure to have [jsonnet](https://jsonnet.org/) and [gojsontoyaml](https://github.com/brancz/gojsontoyaml) installed.
16
17First compile the mixin to a YAML file, which the promtool will read:
18```
19jsonnet -e '(import "mixin.libsonnet").prometheusAlerts' | gojsontoyaml > mixin.yaml
20```
21
22Then run the unit test:
23```
24promtool test rules test.yaml
25```
26