alertmanager/doc/alertmanager-mixin
gotjosh 35bf59f182
Mixin: Rename exclusion rule from `panel-job-instance-rule` to `target-instance-rule`
Within 9a32e58ed0, the rules have been split into two different rules:

`target-job-rule`
`target-instance-rule`

All of our queries do contain the `job` label but as per the reason, we don't need both in this particular case.

Fixes #2899

Signed-off-by: gotjosh <josue.abreu@gmail.com>
2022-05-02 13:08:22 +01:00
..
dashboards fix lint error 2021-12-10 08:20:23 +00:00
.gitignore [mixins] Alertmanager Overview dashboard (#2540) 2021-06-07 19:54:22 +02:00
.lint Mixin: Rename exclusion rule from `panel-job-instance-rule` to `target-instance-rule` 2022-05-02 13:08:22 +01:00
Makefile [mixins] Alertmanager Overview dashboard (#2540) 2021-06-07 19:54:22 +02:00
README.md Beginnings of an Alertmanager mixin. (#1629) 2020-12-03 15:57:42 +01:00
alerts.jsonnet Beginnings of an Alertmanager mixin. (#1629) 2020-12-03 15:57:42 +01:00
alerts.libsonnet Improve the AlertmanagerMembersInconsistent alert 2021-06-22 08:21:02 +02:00
config.libsonnet [mixins] Alertmanager Overview dashboard (#2540) 2021-06-07 19:54:22 +02:00
dashboards.jsonnet [mixins] Alertmanager Overview dashboard (#2540) 2021-06-07 19:54:22 +02:00
dashboards.libsonnet [mixins] Alertmanager Overview dashboard (#2540) 2021-06-07 19:54:22 +02:00
jsonnetfile.json [mixins] Alertmanager Overview dashboard (#2540) 2021-06-07 19:54:22 +02:00
jsonnetfile.lock.json [mixins] Alertmanager Overview dashboard (#2540) 2021-06-07 19:54:22 +02:00
mixin.libsonnet [mixins] Alertmanager Overview dashboard (#2540) 2021-06-07 19:54:22 +02:00

README.md

Alertmanager Mixin

The Alertmanager Mixin is a set of configurable, reusable, and extensible alerts (and eventually dashboards) for Alertmanager.

The alerts are designed to monitor a cluster of Alertmanager instances. To make them work as expected, the Prometheus server the alerts are evaluated on has to scrape all Alertmanager instances of the cluster, even if those instances are distributed over different locations. All Alertmanager instances in the same Alertmanager cluster must have the same job label. In turn, if monitoring multiple different Alertmanager clusters, instances from different clusters must have a different job label.

The most basic use of the Alertmanager Mixin is to create a YAML file with the alerts from it. To do so, you need to have jsonnetfmt and mixtool installed. If you have a working Go development environment, it's easiest to run the following:

$ go get github.com/monitoring-mixins/mixtool/cmd/mixtool
$ go get github.com/google/go-jsonnet/cmd/jsonnetfmt

Edit config.libsonnet to match your environment and then build alertmanager_alerts.yaml with the alerts by running:

$ make build

For instructions on more advanced uses of mixins, see https://github.com/monitoring-mixins/docs.