-
Notifications
You must be signed in to change notification settings - Fork 4
/
NOTES
54 lines (50 loc) · 1.62 KB
/
NOTES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Notes:
* Security concerns? Run from localhost?
* AM's route/receiver may resent alerts which will trigger successive
actions by this event handler.
* AM should filter alerts sent to this receiver by severity="event" or some
such label.
* All alerts can be routed here (use continue: true in the route) to enable
alert logging or similar functionality.
To Do:
* default handler for any alert without a handler or unfound handler
* Trigger handler on all alerts
Example POST Body:
2016/08/24 20:21:52 Request Body: "
{ "receiver":"eventhandler",
"status":"firing",
"alerts": [
{ "status":"firing",
"labels": {
"alertname":"TestAlert",
"monitor":"test",
"severity":"test-page"
},
"annotations": {
"descriptions":"There are 13 Prometheus instances Up",
"runbook":"Just turn this alert off",
"summary":"This is a test alert"
},
"startsAt":"2016-08-23T19:46:22.803Z",
"endsAt":"0001-01-01T00:00:00Z",
"generatorURL":"http://prometheus-test-000-g5.prod.dal06.example.com:9090/graph#%5B%7B%22expr%22%3A%22sum%28up%7Bjob%3D%5C%22prometheus%5C%22%7D%29%20%3E%200%22%2C%22tab%22%3A0%7D%5D"
}
],
"groupLabels": {
"alertname":"TestAlert"
},
"commonLabels": {
"alertname":"TestAlert",
"monitor":"test",
"severity":"test-page"
},
"commonAnnotations": {
"descriptions":"There are 13 Prometheus instances Up",
"runbook":"Just turn this alert off",
"summary":"This is a test alert"
},
"externalURL":"http://prometheus-test-000-g5.prod.dal06.example.com:9093",
"version":"3",
"groupKey":15759275461218033480
}
"