Commit Graph

42 Commits

Author SHA1 Message Date
Fabian Reinartz
1748a0e304 Merge pull request #258 from stapelberg/pushover
Re-implement pushover notifications
2016-03-04 10:02:53 +01:00
Fabian Reinartz
a0e4df20ef Add reload config instrumentation 2016-03-03 14:20:21 +01:00
Michael Stapelberg
4c0aa00bcf Re-implement pushover notifications
This feature was dropped during the rewrite, but I use and like
Pushover.

fixes #107
2016-03-03 09:07:33 +01:00
Fabian Reinartz
124d637de0 Include generatorURL in PD and emails 2016-02-16 16:42:22 +01:00
Fabian Reinartz
3fba247d7c Run make assets for template changes 2016-02-16 12:28:16 +01:00
Alexis Savin
b364ca535e Adding support for slack icon_emoji in slack config.
```
slack_configs:
  - send_resolved: true
    username: 'Prometheus'
    channel: '#monitoring'
    icon_emoji: ':prometheus:'
    api_url: 'https://hooks.slack.com/services/<token>'
```
2016-02-16 11:54:30 +01:00
Fabian Reinartz
6e82fdd419 Fix vetting errors 2016-02-15 11:57:16 +01:00
Fabian Reinartz
27603290b2 Merge pull request #249 from prometheus/webhook
Upgrade webhook protocol
2016-02-12 15:18:41 +01:00
Fabian Reinartz
24b8c22a83 Expose alert interval in template data 2016-02-12 11:00:33 +01:00
Fabian Reinartz
0594d170f6 Upgrade webhook protocol 2016-02-12 10:34:00 +01:00
Fabian Reinartz
9d8d386758 Add generatorURL to UI 2016-02-09 14:46:18 +01:00
Fabian Reinartz
897b3a0366 Use missingkey=zero option in templates 2016-02-05 15:41:15 +01:00
louis
23db37dc98 add hipchat room notifier 2016-01-05 20:52:08 +01:00
Fabian Reinartz
e0f67dbca5 Invert navigation active/inactive color 2015-12-18 12:05:31 +01:00
Fabian Reinartz
fbd81f325b Use double quotes for label values in UI 2015-12-17 11:35:33 +01:00
Fabian Reinartz
625fc42658 Preserve activity interval on silence edit 2015-12-16 14:42:38 +01:00
Fabian Reinartz
76f884b328 Allow zero matching template files 2015-12-09 14:51:18 +01:00
Fabian Reinartz
002c9ca793 Add better mail template 2015-12-09 11:49:22 +01:00
Fabian Reinartz
4ada2398f2 Set previous inhibition/silence state 2015-12-04 10:58:56 +01:00
Fabian Reinartz
1629e9d166 Statically compile default templates 2015-12-01 18:39:57 +01:00
Fabian Reinartz
6dc397de5c Transfer template functions into types+methods 2015-11-30 18:40:22 +01:00
Fabian Reinartz
18e9e728f8 Improve Slack integration 2015-11-30 13:52:41 +01:00
Brian Brazil
71a1c76e52 Use title rather than toTitle.
It turns out that 'title case' is a thing in unicode,
in the same way upper/lower case is.

What our users will want is the first character of a word
being titlecased, which `title` will do.
2015-11-28 11:08:24 +00: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
Jimmi Dyson
ab2a66c6b7 Add space between labels in default subject 2015-11-24 22:29:07 +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
4a9d4de80c Improve default subject template 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
c045a6285b Implement deterministic incident keys, complete PD integration 2015-10-21 13:08:53 +02:00
Fabian Reinartz
899257ee23 Add proper styling of mail template 2015-10-20 09:22:36 +02:00
Fabian Reinartz
329b36594b (u)int64 fixes, UI time range improvements 2015-10-20 07:12:28 +02:00
Fabian Reinartz
e77bda4e9f Fix inverted cleanup trigger, proper mail notifications 2015-10-16 17:45:21 +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
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
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