Commit Graph

15 Commits

Author SHA1 Message Date
Fabian Reinartz
a5c6b238c8 inhibit: reduce O(n^2) complexity problem
This change adds a inhibition cache. New alerts are checked against all
inhibition rules' source matchers. At notification time, we only have to
check the target matchers against the notified alerts. If there are
alerts in the source cache, we only have to verify the equal labels
against these.
2016-06-13 18:27:43 +02:00
beorn7
93ffa534a5 PR with changes after code review
Now to be reverse-reveiewed.
2015-11-23 18:24:57 +01:00
Fabian Reinartz
d4e2bdc36f Track and expose silenced/inhibited status of alerts 2015-11-09 14:34:57 +01:00
Fabian Reinartz
14001ebfa5 Fix golint warnings 2015-11-05 10:49:32 +01: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
9bf18ec4a5 Always assume success on reload of valid config 2015-10-09 09:05:21 +02:00
Fabian Reinartz
aec79600d9 Fix pending SQL expression 2015-10-07 10:59:20 +02:00
Julius Volz
247cf8e3cd Add first inhibition acceptance test. 2015-10-05 16:03:57 +02:00
Julius Volz
0f4d2095d1 Fix map initialization in Inhibitor. 2015-10-05 13:20:42 +02:00
Fabian Reinartz
331ad31401 Implement configuration reloading 2015-09-29 12:22:13 +02:00
Fabian Reinartz
3b401c413b Add pending alert iterator 2015-09-29 10:45:58 +02:00
Fabian Reinartz
0fdaf263c1 Simplify inhibition mute check 2015-09-28 22:08:47 +02:00
Fabian Reinartz
331911edee Make inhibitor consider equality labels 2015-09-27 14:41:18 +02:00
Fabian Reinartz
dfd98a2e14 Move inhibition into its own file 2015-09-27 13:21:15 +02:00