etcd/contrib/mixin
Jintao Zhang 8f887d3a79 ci: add fix-yamllint rule in Makefile
Two rules have been specified for yamlfmt here:
* Automatically add the header `---` to YAML files.
* Preserve line breaks.

ref:
https://github.com/google/yamlfmt/blob/main/docs/config-file.md#configuration-1

Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
Co-authored-by: Marek Siarkowicz <siarkowicz@google.com>
2023-06-01 09:06:36 +08:00
..
Makefile contrib/mixin: Generate rules, fix tests 2022-02-10 16:17:03 +01:00
README.md contrib/mixin: Generate rules, fix tests 2022-02-10 16:17:03 +01:00
mixin.libsonnet etcd-mixin: Limit etcdDatabaseHighFragmentationRatio to 100MB+ 2023-03-07 14:58:58 +01:00
test.yaml ci: add fix-yamllint rule in Makefile 2023-06-01 09:06:36 +08:00

README.md

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.

Background

  • For more information about monitoring mixins, see this design doc.

Testing alerts

Make sure to have jsonnet and 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