Frederic Branczyk
dcf2b3afcb
notify: move resolved alert filtering to integration
...
Resolved alerts, even when filtered, have to end up in the
SetNotifiesStage, otherwise when an alert fires again it is ambiguous
whether it was resolved in between or not.
fixes #523
2016-10-05 17:45:35 +02:00
Fabian Reinartz
a4e8703567
*: integrate new silence package
2016-08-30 12:15:23 +02:00
Fabian Reinartz
72fdf3d3ab
*: integrate nflog
...
This commit replaces the previous NotifyInfo provider with the new
nflog package. It needs adjustments in the behavior of the deduping
stage.
The nflog stores notification digests per receiver per alert aggregation
group rather than one entry for alert per receiver. This drastically
reduces the number of entries and removes interference
across aggregation groups.
2016-08-18 15:52:28 +02:00
Fabian Reinartz
e51770ce21
main: use mesh providers
2016-08-09 12:00:28 +02:00
Fabian Reinartz
d6e64dccc5
provider/boltmem: make alerts purely in-memory.
...
Initial testing has shown BoltDB in plain usage to be a bottleneck
at a few thousand alerts or more (especially JSON decoding.
This commit actually makes them purely memory as a temporary solution.
2016-07-07 09:45:12 +02:00
Fabian Reinartz
11fae2a719
Simplify and fix notification grouping.
...
This commit changes the notification grouping behavior
to simply send all alerts of a group as soon as a single
one of them needs updating.
This fixes a critical bug which caused erroneous resolved
notifications to be sent.
2016-01-08 15:17:54 +01:00
Fabian Reinartz
d21d29ee58
Correctly parse send_resolved config field
...
Fixes #198
2015-12-23 08:31:50 +01:00
Fabian Reinartz
cec04341f7
Add resolved test
2015-11-30 11:20:28 +01:00
Fabian Reinartz
dc656a44ea
Adjust config fields to 'receiver'
2015-11-10 14:08:20 +01:00
Fabian Reinartz
ba4c3d31b5
Extend merging test to cover more scenarios
2015-10-20 11:59:40 +02:00
Fabian Reinartz
6cbd7f5511
Inherit grouping labels, default grouping labels
2015-10-19 17:35:59 +02:00
Fabian Reinartz
cb0ecd9416
Alter config to have a root route
2015-10-19 16:52:54 +02:00
Fabian Reinartz
ff7eddc453
Add acceptance test for alert merging
2015-10-15 12:46:51 +02:00
Fabian Reinartz
2d3f0ecd84
Add test for silence deletion
2015-10-12 07:40:55 +02:00
Fabian Reinartz
0073647981
Restructure acceptance test files
2015-10-12 07:35:22 +02:00
Fabian Reinartz
16e693dd4f
Add simple test for retry logic
2015-10-12 07:28:43 +02:00
Fabian Reinartz
5dc2f6e9b1
Add license headers
2015-10-11 17:24:49 +02:00
Fabian Reinartz
d1379a3f71
Move repeat_interval and send_resolved to route configuration
2015-10-08 10:50:37 +02:00
Fabian Reinartz
f48c95eb19
Test restartability with persistence
2015-10-07 16:19:37 +02:00
Fabian Reinartz
f14ada020a
Fix alert batch comparison, improve debug output
2015-10-05 16:51:34 +02:00
Fabian Reinartz
5222e340b8
Move inhibition test into own file
2015-10-05 16:08:00 +02:00
Julius Volz
247cf8e3cd
Add first inhibition acceptance test.
2015-10-05 16:03:57 +02:00
Fabian Reinartz
5ba2d4abc1
Assign webhook addresses automatically, per AM configs
2015-10-02 14:10:04 +02:00
Fabian Reinartz
b0989ca9f3
Let test silence timeout by itself
2015-10-01 22:22:51 +02:00
Fabian Reinartz
152f811227
Fix acceptance test
2015-10-01 22:15:27 +02:00
Fabian Reinartz
7b0820a205
Add silencing test
2015-10-01 21:28:18 +02:00
Fabian Reinartz
ad1408e8b9
Fix test documentation
2015-10-01 09:43:51 +02:00
Fabian Reinartz
6174b41b0c
Adjust test for new batching behavior
2015-09-30 19:03:19 +02:00
Fabian Reinartz
1fcc5d6717
Add proper checks whether full batches were received
2015-09-30 18:45:49 +02:00
Fabian Reinartz
6a0b4cc8b2
Add acceptance test example for batching
2015-09-30 18:02:47 +02:00
Fabian Reinartz
25ee299cb9
Make example test more constrained
2015-09-30 17:35:33 +02:00
Fabian Reinartz
f20f5dce42
Document example acceptance test scenario
2015-09-30 16:18:44 +02:00
Fabian Reinartz
4401bb1b82
Split acceptance testing into multiple files
2015-09-30 16:13:00 +02:00