May 2019
Intermediate to advanced
442 pages
11h 36m
English
To have an idea of what a notification without any customization looks like, we're going to use a very simple example. Take the following alerting rule, which we defined in our Prometheus instance:
- alert: deadmanswitch expr: vector(42)
As soon as this alert starts firing, an alert payload will be sent to Alertmanager. The following snippet demonstrates the payload being sent. Note the labels that are present, which include the alertname and the external_labels from the Prometheus instance:
{ "labels": { "alertname": "deadmanswitch", "dc": "dc1" }, "annotations": {}, "startsAt": "2019-04-02T19:11:30.04754979Z", "endsAt": "2019-04-02T19:14:30.04754979Z", "generatorURL": "http://prometheus:9090/graph?g0.expr=vector%2842%29&g0.tab=1" ...Read now
Unlock full access