Commit Graph

40 Commits

Author SHA1 Message Date
Fabian Reinartz
69a3cf1c8c Fix SQL statements to find overlapping alerts 2015-10-15 16:22:54 +02:00
Fabian Reinartz
998ae4369e Fix querying pending alerts.
This commit retrieves the correct pending alerts
and introduces a workaround to a bug in the SQL library.
2015-10-14 12:52:42 +02:00
Fabian Reinartz
5dc2f6e9b1 Add license headers 2015-10-11 17:24:49 +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
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
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
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
8d28d1dee5 Initial SQL provider for silences 2015-10-06 11:41: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
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
4e381c7e64 Store model.Silence and restore types.Silence correctly 2015-10-01 22:16:44 +02:00
Fabian Reinartz
fdf4d80003 Implement silence provider check for bad insert 2015-10-01 20:58:14 +02:00
Fabian Reinartz
46e09e2b2c Switch to model.Silence 2015-10-01 17:50:15 +02:00
Fabian Reinartz
331ad31401 Implement configuration reloading 2015-09-29 12:22:13 +02:00
Fabian Reinartz
eeeeeea3d8 Fix premature channel close on clean startup 2015-09-29 11:57:58 +02:00
Fabian Reinartz
3b401c413b Add pending alert iterator 2015-09-29 10:45:58 +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
ff2ba6277d Add test for deduping notifier 2015-09-28 21:47:12 +02:00
Fabian Reinartz
c40c31772f Rename Silencer to Muter 2015-09-28 14:13:01 +02:00
Fabian Reinartz
3a5da1a345 Fix nil notify provider result 2015-09-27 21:51:54 +02:00
Fabian Reinartz
78a7ec62d9 Implement in-memory notifies provider 2015-09-27 20:16:42 +02:00
Fabian Reinartz
49da433478 Add notify and shared data source for providers 2015-09-27 19:50:24 +02:00
Fabian Reinartz
95b12f8c30 Add silence API endpoints 2015-09-27 14:07:04 +02:00
Fabian Reinartz
0597c1757b Implement in-memory silences provider 2015-09-27 13:18:13 +02:00
Fabian Reinartz
5d0f3ffa0e Generalize iterator interface, locking fixes 2015-09-27 12:28:03 +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
e861482761 Add in-memory alert provider 2015-09-25 14:38:07 +02:00
Fabian Reinartz
0ffdd6fa2f Move providers into their own package 2015-09-25 13:18:28 +02:00