Commit Graph

639 Commits

Author SHA1 Message Date
Fabian Reinartz
3917620c24 Implement multiple matchers in Silence creation 2015-10-13 16:59:37 +02:00
Fabian Reinartz
433c7008b4 Improve silence datetime display. 2015-10-12 22:36:56 +02:00
Fabian Reinartz
3e213ddb3d Add listing and creation of silences 2015-10-12 22:22:21 +02:00
Fabian Reinartz
942a4f91ed Initial layout for angular.js UI 2015-10-12 17:08:07 +02:00
Fabian Reinartz
66488d433b add title and regexp replace template functions 2015-10-12 08:55:20 +02:00
Fabian Reinartz
f9f32c7136 Add test for silence deletion 2015-10-12 08:49:49 +02:00
Fabian Reinartz
2d3f0ecd84 Add test for silence deletion 2015-10-12 07:40:55 +02:00
Fabian Reinartz
0073647981 Restructure acceptance test files 2015-10-12 07:35:22 +02:00
Fabian Reinartz
16e693dd4f Add simple test for retry logic 2015-10-12 07:28:43 +02:00
Fabian Reinartz
aca2089216 Add injection function to webhook 2015-10-12 07:28:25 +02:00
Fabian Reinartz
ee6ca25db0 Add initial web UI routing 2015-10-12 07:10:25 +02:00
Fabian Reinartz
98fe623d60 Rename NewAPI to RegisterAPI 2015-10-11 17:28:09 +02:00
Fabian Reinartz
7933d0edba Set maintainer for the AM rewrite implementation 2015-10-11 17:27:23 +02:00
Fabian Reinartz
5dc2f6e9b1 Add license headers 2015-10-11 17:24:49 +02:00
Fabian Reinartz
ce15d774d6 Add hierarchical naming for templates 2015-10-11 17:09:59 +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
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
8e8052ad1b Add default templates 2015-10-11 13:32:34 +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
9b0ceacef8 Fix creation of model.Alert from types.Alert 2015-10-11 12:33:54 +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
c8e0343660 Vendor backoff library 2015-10-09 09:39:04 +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
Julius Volz
7890aa2de8 Merge pull request #132 from prometheus/fix-path-prefix-api-usage
Fix path prefix usage in UI.
2015-10-08 16:01:37 +02:00
Julius Volz
ab9348240e Fix path prefix usage in UI.
Just a quick hotfix before the new Alertmanager comes out.

The path prefix handling is kind of inconsistent in AM (we have both a
-web.path-prefix flag and a -web.external-url flag and with different
trailing-backslash variant than in Prometheus). This should all be
cleaned up in the new one.

Fixes https://github.com/prometheus/alertmanager/issues/79
2015-10-08 14:50:06 +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