mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

* Add Makefile * Make tests runnable * Add generated rule manifest file Signed-off-by: Manuel Rüger <manuel@rueg.eu>
30 lines
854 B
Markdown
30 lines
854 B
Markdown
# Prometheus Monitoring Mixin for etcd
|
|
|
|
> NOTE: This project is *alpha* stage. Flags, configuration, behaviour and design may change significantly in following releases.
|
|
|
|
A set of customisable Prometheus alerts for etcd.
|
|
|
|
Instructions for use are the same as the [kubernetes-mixin](https://github.com/kubernetes-monitoring/kubernetes-mixin).
|
|
|
|
## Background
|
|
|
|
* For more information about monitoring mixins, see this [design doc](https://docs.google.com/document/d/1A9xvzwqnFVSOZ5fD3blKODXfsat5fg6ZhnKu9LK3lB4/edit#).
|
|
|
|
## Testing alerts
|
|
|
|
Make sure to have [jsonnet](https://jsonnet.org/) and [gojsontoyaml](https://github.com/brancz/gojsontoyaml) installed. You can fetch it via
|
|
|
|
```
|
|
make tools
|
|
```
|
|
|
|
First compile the mixin to a YAML file, which the promtool will read:
|
|
```
|
|
make manifests
|
|
```
|
|
|
|
Then run the unit test:
|
|
```
|
|
promtool test rules test.yaml
|
|
```
|