Commit 6c4925f
committed
fix flapping alerts in Alertmanager
- If startsAt and endsAt are equal, Alertmanager will mark the alert as
resolved. This is the case when the grace period is set to 0 for an
alert condition.
- Alertmanager will prune alerts when it hits the time specified in the
endsAt field. Graylog is good at sending notifications on time, but
a small window is added in case there is a delay will prevent alerts
going stale.1 parent 19c2aa4 commit 6c4925f
File tree
2 files changed
+15
-3
lines changed- src
- main/java/de/gdata/mobilelab/alertmanagercallback
- test/java/de/gdata/mobilelab/alertmanagercallback
2 files changed
+15
-3
lines changedLines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
122 | 131 | | |
123 | 132 | | |
124 | 133 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| |||
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
| 231 | + | |
229 | 232 | | |
230 | 233 | | |
231 | 234 | | |
| |||
602 | 605 | | |
603 | 606 | | |
604 | 607 | | |
605 | | - | |
| 608 | + | |
0 commit comments