Commit Graph

106 Commits

Author SHA1 Message Date
Fabian Reinartz
2f37761658 Merge pull request #183 from prometheus/sqlite
Switch to SQLite persistence
2015-12-08 15:28:21 +01:00
Fabian Reinartz
2a879f649f Fix email From configuration 2015-12-08 11:55:28 +01:00
Brian Brazil
29fd91784b Update webhook for new alertmanager.
As we've a new data format the version number needs a bump.
Also make alerts with no annotations easier to handle for
users on the receiving end.
2015-12-07 16:55:37 +00:00
Fabian Reinartz
4ada2398f2 Set previous inhibition/silence state 2015-12-04 10:58:56 +01:00
Fabian Reinartz
7581d974ff Hide secret configuration data 2015-12-03 12:46:28 +01:00
Fabian Reinartz
18e9e728f8 Improve Slack integration 2015-11-30 13:52:41 +01:00
Fabian Reinartz
9fbc76a52f Improve PagerDuty templating 2015-11-27 14:02:34 +01:00
Fabian Reinartz
38b6ed118d Iterate over templating 2015-11-26 12:56:09 +01:00
Jimmi Dyson
3e7d614eb2 Add opsgenie notifier 2015-11-24 22:29:25 +00:00
Björn Rabenstein
a4ffa9a64b Merge pull request #156 from prometheus/beorn7/review-dev
PR with changes after code review
2015-11-23 18:27:32 +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
1951593cc9 Always have alertname in first position 2015-11-23 17:20:02 +01:00
Brian Brazil
faa88831f4 First-pass at improving template system.
- Cut back to bare minimum to make the rest simpler
- Consistency in config naming
- Have one data strucutre that's the same for all templates
- Pass in common labels to templates
- Support templates almost everywhere
- Support multiple SMTP recipients
- Support non-ASCII SMTP headers
- Handle colour logic via templates
- Make $subjects have consistent output, go maps aren't sorted.
- Make tests pass when v6 is disabled
2015-11-18 14:59:05 +00:00
Fabian Reinartz
0d8ee0b3ec Fix golint issues in notify/ 2015-11-12 13:18:36 +01:00
Fabian Reinartz
dc656a44ea Adjust config fields to 'receiver' 2015-11-10 14:08:20 +01:00
Fabian Reinartz
e4e594d826 Unify receiver naming 2015-11-10 13:47:04 +01:00
Fabian Reinartz
8d2bbc348b Simplify and rename notification info struct.
The delivered field was previously unused and is removed by this commit.
Only successful notifications are stored. The type was renamed to NotifyInfo.
2015-11-06 10:09:39 +01:00
Fabian Reinartz
5ce39632f8 Fix go vet warnings 2015-11-05 10:25:25 +01:00
Fabian Reinartz
6f0d441e39 Fix unlocked write and unnecessary condition 2015-11-04 17:17:37 +01:00
Fabian Reinartz
c045a6285b Implement deterministic incident keys, complete PD integration 2015-10-21 13:08:53 +02:00
Fabian Reinartz
aead14a99f Implement initial PagerDuty notifications 2015-10-19 13:36:17 +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
955c27a869 Fix typo in string expansion 2015-10-14 12:52:17 +02:00
Fabian Reinartz
5dc2f6e9b1 Add license headers 2015-10-11 17:24:49 +02:00
Fabian Reinartz
9c5468786d Simplify notifier constructors 2015-10-11 16:54:31 +02:00
Fabian Reinartz
46897ea04e Add builder from notifcation configs 2015-10-11 15:37:44 +02:00
Fabian Reinartz
6bcc8c9928 Add concurrent, named fanout notifier 2015-10-11 15:37:21 +02:00
Fabian Reinartz
3a2db95a8e Create and use custom template package 2015-10-11 13:32:24 +02:00
Fabian Reinartz
41821faf92 Use multi-error for notify-fanout 2015-10-11 12:40:43 +02:00
Fabian Reinartz
6e47e75ac5 Enhance email notifier templating 2015-10-11 12:34:05 +02:00
Fabian Reinartz
c84a287be6 Notify pipeline restructuring
Notifcation configs may have multiple notification destinations.
This commit changes the pipeline so that each one has its own
retry and deduplication logic.
2015-10-10 15:11:37 +02:00
Fabian Reinartz
f62dc65ff4 Implement initial email notifications 2015-10-09 12:03:15 +02:00
Fabian Reinartz
7ef293d9bc Make loadable templates configurable 2015-10-09 11:06:04 +02:00
Fabian Reinartz
e209c8b4fc Outlined slack notification support 2015-10-09 10:48:25 +02:00
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
d1379a3f71 Move repeat_interval and send_resolved to route configuration 2015-10-08 10:50:37 +02:00
Fabian Reinartz
be915a3752 Adjust test to new notify provider interface 2015-10-06 21:11:02 +02:00
Fabian Reinartz
77cce75c05 Simplify notify provider interface 2015-10-06 20:40:52 +02:00
Fabian Reinartz
0e742ecf33 Handle resolved new alerts properly 2015-10-02 15:58:37 +02:00
Fabian Reinartz
7fb9e63f89 Remove temporary Slack integration 2015-10-01 15:59:35 +02:00
Fabian Reinartz
0600d6b47b Integrate new model types, separate internal and external types better 2015-10-01 15:46:10 +02:00
Fabian Reinartz
03272174f2 Pass aggregation group identifier through context 2015-10-01 15:18:19 +02:00
Fabian Reinartz
8ee78e0e53 Fix formatting 2015-10-01 14:55:55 +02:00
Fabian Reinartz
0b4d58fbdb Switch to model.Alert 2015-10-01 14:53:49 +02:00
Fabian Reinartz
3e145caef9 Implement unifying of batches on repeated sends 2015-09-30 19:03:04 +02:00
Fabian Reinartz
f5cfe0b4e8 Add an exit point in case all alerts are filtered 2015-09-30 18:44:33 +02:00
Fabian Reinartz
a377004d90 Wrap all notifiers with logging 2015-09-30 14:54:13 +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
8799d647b3 Use proper build function to create new notifiers 2015-09-29 15:02:30 +02:00
Fabian Reinartz
b5cee8828a Add webhook notifier mechanism 2015-09-29 14:45:38 +02:00