Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 15-Oct-2021 | - | ||||
README.md | H A D | 15-Oct-2021 | 883 | 26 | 16 | |
mixin.libsonnet | H A D | 15-Oct-2021 | 39 KiB | 1,294 | 1,291 | |
test.yaml | H A D | 15-Oct-2021 | 2.7 KiB | 86 | 81 |
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