Fabian Reinartz
9cd90d3482
Implement retrying notifier
...
Retrying notifier is added to the end of the pipeline where it retries
sending out the final notifications until the context times out.
Exponential backoff is used.
2015-10-09 09:37:32 +02:00
Fabian Reinartz
9bf18ec4a5
Always assume success on reload of valid config
2015-10-09 09:05:21 +02:00
Fabian Reinartz
42e1963715
Ensure minimum notification context timeout
2015-10-09 08:58:44 +02:00
Fabian Reinartz
0a5a7691fe
Encapsulate context values in package.
...
Setting and getting of context values are done via helper
methods in the notifier package. The used keys are unexported. Thus,
we ensure that external code cannot overwrite the values and the type
is always correct.
2015-10-09 08:43:39 +02:00
Fabian Reinartz
638b3f9f40
Use a fixed now time through notify pipeline
2015-10-09 08:26:41 +02:00
Fabian Reinartz
c60ae1f752
Change notifier pipeline order.
...
With repeat_interval and send_resolved being defined per
aggregation group, we no longer need to chain the deduping
after the routing.
2015-10-08 11:02:49 +02:00
Fabian Reinartz
41849f9497
Add missing transitive dependencies
2015-10-08 10:58:00 +02:00
Fabian Reinartz
4f67dbc9d2
Add SQL vendoring
2015-10-08 10:51:22 +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
aec79600d9
Fix pending SQL expression
2015-10-07 10:59:20 +02:00
Fabian Reinartz
cf5d4fc2e4
Fix various SQL statements
2015-10-07 00:46:23 +02:00
Fabian Reinartz
be915a3752
Adjust test to new notify provider interface
2015-10-06 21:11:02 +02:00
Fabian Reinartz
f067c96525
Use full SQL persistence, init DB in main
2015-10-06 21:10:24 +02:00
Fabian Reinartz
cc5662f1e8
Integrate alert provider with notify persistence
2015-10-06 21:07:16 +02:00
Fabian Reinartz
e7d45c6a64
Make SQL calls more readable
2015-10-06 20:50:11 +02:00
Fabian Reinartz
77cce75c05
Simplify notify provider interface
2015-10-06 20:40:52 +02:00
Fabian Reinartz
5afb402a6c
Add SQL notify info provider
2015-10-06 20:40:39 +02:00
Fabian Reinartz
f4ff8e12cb
Initial version of SQL alert provider
2015-10-06 15:36:38 +02:00
Fabian Reinartz
ff29710178
Fix silence encoding/decoding in SQL provider
2015-10-06 13:56:02 +02:00
Fabian Reinartz
a653f90516
Setup persistence dir for acceptance tests
2015-10-06 12:41:20 +02:00
Fabian Reinartz
de18b1b70c
Make data directory configurable
2015-10-06 12:36:33 +02:00
Fabian Reinartz
826a51cafb
Complete and use the SQL backed silence provider
2015-10-06 12:23:48 +02:00
Fabian Reinartz
e15c19ad0d
Properly include creation timestamp
2015-10-06 12:10:42 +02:00
Fabian Reinartz
0d8dae72f1
Assign silence creation time on insert
2015-10-06 12:10:15 +02:00
Fabian Reinartz
fb093ca0f5
Update common/model vendoring
2015-10-06 11:45:47 +02:00
Fabian Reinartz
8d28d1dee5
Initial SQL provider for silences
2015-10-06 11:41:34 +02:00
Fabian Reinartz
546c225cc8
Run full make in CI
2015-10-05 18:43:38 +02:00
Fabian Reinartz
f14ada020a
Fix alert batch comparison, improve debug output
2015-10-05 16:51:34 +02:00
Fabian Reinartz
ecf6a7b48f
Consider alerts without notify data pending
2015-10-05 16:51:17 +02:00
Fabian Reinartz
b0ca8f7c1c
Consider unresolved alerts always pending
2015-10-05 16:09:55 +02:00
Fabian Reinartz
5222e340b8
Move inhibition test into own file
2015-10-05 16:08:00 +02:00
Julius Volz
05f9972bb5
Remove some debug statements.
2015-10-05 16:03:57 +02:00
Julius Volz
247cf8e3cd
Add first inhibition acceptance test.
2015-10-05 16:03:57 +02:00
Julius Volz
0c96c80cd6
Fix spelling of exepected->expected.
2015-10-05 16:03:56 +02:00
Julius Volz
0f4d2095d1
Fix map initialization in Inhibitor.
2015-10-05 13:20:42 +02:00
Fabian Reinartz
7271ea0907
Fix listener broadcasting implementation
2015-10-04 22:58:33 +02:00
Fabian Reinartz
856d5091c1
Implement merging of alerts on insert
2015-10-02 16:52:04 +02:00
Fabian Reinartz
0e742ecf33
Handle resolved new alerts properly
2015-10-02 15:58:37 +02:00
Fabian Reinartz
aab576c7c0
Add method to update Alertmanager configuration file
2015-10-02 14:14:30 +02:00
Fabian Reinartz
5ba2d4abc1
Assign webhook addresses automatically, per AM configs
2015-10-02 14:10:04 +02:00
Fabian Reinartz
1ff41b3864
Use alertmanager client package for alert pushing
2015-10-02 12:45:52 +02:00
Fabian Reinartz
e0a003337e
Fix .gitignore and include alertmanager API package
2015-10-02 12:41:41 +02:00
Fabian Reinartz
83a0d68fc8
Add acceptance test documentation
2015-10-02 12:32:19 +02:00
Fabian Reinartz
f29a380ec4
Export Alertmanager process control functionality
2015-10-02 12:28:27 +02:00
Fabian Reinartz
5c4ec44962
Centralize test actions in AcceptanceTest
2015-10-02 12:18:02 +02:00
Fabian Reinartz
b0989ca9f3
Let test silence timeout by itself
2015-10-01 22:22:51 +02:00
Fabian Reinartz
4e381c7e64
Store model.Silence and restore types.Silence correctly
2015-10-01 22:16:44 +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