Commit Graph

50 Commits

Author SHA1 Message Date
Fabian Reinartz 81cbf3cda7 *: refactor Silence type, use UUID
This commit removes the dependency on model.Silence for the internal
Silence type, uses UUIDs instead of uint64s and clarifies invariants
around timestamp handling.

The created_at timestamp is removed for the time being.
2016-08-09 11:59:35 +02:00
Matt Bostock 0d057e2fac Fix typo 'determins' in comment 2016-06-06 12:18:55 +01:00
Fabian Reinartz 9b4479cb6b Move send_resolved parameter to notifier configuration 2015-12-17 13:43:56 +01:00
Fabian Reinartz 7ddcc42efa Fix lock 2015-12-04 14:55:42 +01:00
Fabian Reinartz 00b8a2ad03 Make resolve timeout configurable 2015-11-27 15:41:22 +01:00
beorn7 93ffa534a5 PR with changes after code review
Now to be reverse-reveiewed.
2015-11-23 18:24:57 +01:00
Fabian Reinartz 913c17c254 Remove data races from dispatcher state 2015-11-19 13:47:31 +01:00
Fabian Reinartz d945c872d8 Style fix, remove debug prints 2015-11-11 17:53:18 +01:00
Fabian Reinartz c157b78a04 Do not expose groups with 0 alerts 2015-11-11 17:05:22 +01:00
Fabian Reinartz ede4b63a91 Implement deterministic alert group order, cleanup 2015-11-10 14:52:04 +01:00
Fabian Reinartz e4e594d826 Unify receiver naming 2015-11-10 13:47:04 +01:00
Fabian Reinartz 5fb30e1a0e Do not include resolved alerts in API response 2015-11-10 11:25:11 +01:00
Fabian Reinartz d4e2bdc36f Track and expose silenced/inhibited status of alerts 2015-11-09 14:34:57 +01:00
Fabian Reinartz 152df94088 Simplify alert UI 2015-11-09 11:09:32 +01:00
Fabian Reinartz 8f2aaff1db Implement flat alert group API endpoint 2015-11-07 14:30:21 +01:00
Fabian Reinartz 14001ebfa5 Fix golint warnings 2015-11-05 10:49:32 +01:00
Fabian Reinartz 6f0d441e39 Fix unlocked write and unnecessary condition 2015-11-04 17:17:37 +01:00
Fabian Reinartz a765ef9534 Add aggregation group unit test 2015-10-27 18:26:44 +01:00
Fabian Reinartz a4333564a0 Improve UI tree JSON, style UI tree 2015-10-22 09:49:16 +02:00
Fabian Reinartz 524d08d567 Implement endpoint for UI routing tree representation 2015-10-21 16:34:56 +02:00
Fabian Reinartz c045a6285b Implement deterministic incident keys, complete PD integration 2015-10-21 13:08:53 +02:00
Fabian Reinartz 329b36594b (u)int64 fixes, UI time range improvements 2015-10-20 07:12:28 +02:00
Fabian Reinartz ef0ee97781 Implement global routing options 2015-10-19 16:17:15 +02:00
Fabian Reinartz e77bda4e9f Fix inverted cleanup trigger, proper mail notifications 2015-10-16 17:45:21 +02:00
Fabian Reinartz 4b49350122 Fix potential grouping collisions, pass down group labels 2015-10-16 16:55:56 +02:00
Fabian Reinartz ce74f8363b Simplify initialization
No longer update components based on a new configuration. Generally,
destroying and recreating has no performance impact and is less
error-prone.
This also removes the Reloadable interface and simplifies the entire
startup contraption.
2015-10-11 16:54:39 +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 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 03272174f2 Pass aggregation group identifier through context 2015-10-01 15:18:19 +02:00
Fabian Reinartz 2b6d40c926 Add flush logging to aggregation groups 2015-09-30 14:53:52 +02:00
Fabian Reinartz 5ed89a72a5 Change to clearer alert time fields 2015-09-29 17:26:44 +02:00
Fabian Reinartz c3b36790eb Move notifiers into their own package 2015-09-29 15:36:36 +02:00
Fabian Reinartz 331ad31401 Implement configuration reloading 2015-09-29 12:22:13 +02:00
Fabian Reinartz 7224f33c5b Add debug logging for incoming alerts 2015-09-29 12:00:30 +02:00
Fabian Reinartz 54a8d6ea04 Adjust alert subscription behavior.
Rename IterActive to Subscribe. The returned iterator now
returns all alerts with pending notifications which may also include
resolved alerts.
2015-09-29 10:00:02 +02:00
Fabian Reinartz 67f5e89816 Switch to common/log package 2015-09-28 12:12:27 +02:00
Fabian Reinartz 95b57b3622 Add deduping notifier 2015-09-27 19:50:41 +02:00
Fabian Reinartz e10ae037d0 Extract notifiers from dispatcher to routed notifier 2015-09-27 13:09:02 +02:00
Fabian Reinartz afe7194f6c Fix notifyFunc specification 2015-09-26 18:12:56 +02:00
Fabian Reinartz 797bfa1468 Fix group and repeat interval differentiation 2015-09-26 18:03:54 +02:00
Fabian Reinartz c05c028975 Fix deletion of old alerts in aggregation groups 2015-09-26 17:54:49 +02:00
Fabian Reinartz 79eac01917 Change notify interface to multiple alerts 2015-09-26 14:12:55 +02:00
Fabian Reinartz 4b58d30f4d Add safer AlertIterator interface 2015-09-26 11:14:18 +02:00
Fabian Reinartz 89e8d82a1b Fix compile issues 2015-09-26 11:14:18 +02:00
Fabian Reinartz 1f9886e5ca Migrate to types package 2015-09-25 14:38:57 +02:00
Fabian Reinartz 17dce696c9 Move manager package to top level 2015-09-25 13:46:49 +02:00