Commit Graph

80 Commits

Author SHA1 Message Date
Anders Daljord Morken
d272fd61b6 Style fixes. 2015-09-23 16:14:54 +02:00
Anders Daljord Morken
b6979cb579 Move URL check into HTTP handler function. 2015-09-23 13:14:04 +02:00
Anders Daljord Morken
04f880bccb Test OpsGenie close requests. 2015-09-21 14:23:35 +02:00
Anders Daljord Morken
43f18d07f2 Close OpsGenie alerts by POST to /close endpoint.
Closing OpsGenie alerts requires POSTing the notification to an endpoint with
/close appended (compared to the alert creation endpoint).
See https://www.opsgenie.com/docs/web-api/alert-api#closeAlertRequest
2015-09-21 14:19:50 +02:00
Julius Volz
477a6c17ec Linkify alert rows. 2015-09-08 16:44:11 +02:00
jamiegwatkin
a03cd1c638 Renamed TopicARN to TopicArn to match 54390aa361/service/sns/examples_test.go (L518). 2015-08-17 15:37:02 -04:00
Kyle
51357fd34c Alertmanager: Add Amazon SNS Notification
This adds notifications to Amazon SNS.  It is using Amazon's go sdk. The notification config should look like
    amazon_sns_config {
      topic_arn: "arn:aws:sns:us-east-1:an-arn-id:topic"
      send_resolved: true
    }

The alert summary and status will be used as the SNS subject.
The alert description and status will be used as the SNS message.

SNS notifictions require Amazon AWS credentials to be setup as described by the Amazon go sdk.
2015-07-29 13:40:05 -05:00
Julius Volz
55074bdf19 Merge pull request #97 from miekg/opsgenie
Alertmanager: Add OpsGenie Webhook notification.
2015-07-29 18:23:16 +02:00
Miek Gieben
48ba027cc5 Alertmanager: Add OpsGenie Webhook notification.
This adds notifications to OpsGenie. It is using the webhook api. The
notification_config should look like

  opsgenie_config {
    api_key: "bliep"
    teams: "team-one"
    send_resolved: true
  }

It further sets the alert fingerprint in Alias and adds all the
alert labels into the Details field.

See https://www.opsgenie.com/docs/web-api/alert-api#createAlertRequest
for the details.

It can also close the alert by using the Alias field again. See
https://www.opsgenie.com/docs/web-api/alert-api#closeAlertRequest

And it adds a 'labels_to_tag' that allows you to specify for which
label names you want to create a tag with the value of that label.
This makes routing alerts easier.
2015-07-29 17:17:33 +01:00
Vladimir Pouzanov
64e606d8f1 Made slack timeout configurable 2015-07-27 11:23:29 +01:00
Vladimir Pouzanov
74cf7b4000 Fixed pushover api call with retry and expire flags
Fixes #100
2015-07-25 08:49:24 +01:00
Julius Volz
80743177b8 Merge pull request #80 from t0mk/html_template
HTML template for notifications with FlowDock
2015-07-22 12:58:25 +02:00
Miek Gieben
abacb716f5 Slack notification: add channel
Currently a failure is logged as:
 msg="Sent Slack notification: 17555453829685976206: HTTP 500: Invalid channel specified"

 Add the actual channel in there to aid in debugging.
2015-07-21 09:57:08 +01:00
Tomas Karasek
b0a879d416 add test for Flowdock notification 2015-07-15 16:24:57 +03:00
Tomas Karasek
355565defc html template defined and plugged to FlowDock notifier 2015-07-15 16:24:41 +03:00
Julius Volz
e484620a63 Set Pushover notification priority to "emergency".
Fixes https://github.com/prometheus/alertmanager/issues/89
2015-07-08 18:11:47 -06:00
Julius Volz
35b3741756 Add runbook and alertmanager URLs to PD+email notifications.
I don't have a way to test all the other notification mechanisms, which
is something we should fix in general. For now, only PagerDuty and email
have the new runbook and alertmanager URL information.

Not very happy with the overall cleanliness of this, and the codebase
overall, of course, but since we need this urgently tomorrow, I hope
this is fine for now.
2015-06-25 18:18:08 +02:00
William Rouesnel
03bc356197 Fix email template body writer being called with parameters in wrong order. 2015-06-10 15:00:09 +10:00
Brian Brazil
5de8fccdb4 Change case of alert json to initial lower letter.
Matching change to what's on the prometheus server side.
2015-05-30 14:37:26 +01:00
Julius Volz
6f0fa88489 Merge pull request #62 from SQiShER/master
Added support for @mentions in HipChat notifications
2015-05-28 14:55:28 +02:00
Brian Brazil
89b13e1c73 Add a generic webhook notifier.
This allows for use cases such as kicking off shell scripts,
logging notifications, or anything else the alertmanager doesn't
directly support.
2015-05-27 23:57:18 +01:00
Daniel Bechler
2d7992a59b Added support for @mentions in HipChat notifications 2015-05-24 00:11:13 +02:00
Julius Volz
b4648a9e33 Migrate logging to use prometheus/log. 2015-05-23 23:21:44 +02:00
Fabian Reinartz
5b0e343ec4 Merge pull request #64 from novilabs/pushover-status-notification
add status to pushover title
2015-05-23 09:14:03 +02:00
Tomas Karasek
5b1c59f0cc rewrote to better fit in exisitng code 2015-05-19 14:31:06 +03:00
Tomas Karasek
9632bf24f8 more readable HTTP response logging 2015-05-19 11:38:28 +03:00
Tomas Karasek
48cdc777ce improve Flowdock PR based on julius' comments 2015-05-19 11:37:22 +03:00
Cameron Davison
ac2e3be7b7 add status to title, and Assume that the summary is the message, and that the alertname is a very short concise name for the alert 2015-05-18 15:53:28 -05:00
Tomas Karasek
bfcded79e8 Added flowdock notifier 2015-05-18 19:07:56 +03:00
Steve Durrheimer
df0ce42d42 Add simple support for Slack notifications 2015-05-10 22:21:18 +02:00
Cameron Davison
fc6a513f7f fix notifier, return means no other notifications will work. instead continue in case other notifications should alert 2015-04-27 16:17:55 -05:00
Johannes 'fish' Ziemke
735e8075d2 Add support to notify for resolved alerts
Change-Id: I31fc51d2a47d92e9d7ac2ba224c7fce02b28444e
2015-04-24 19:29:52 +02:00
Ceesjan Luiten
c12fa13a06 Visually distinguish alertname and summary 2015-04-21 19:28:05 +02:00
Ceesjan Luiten
d36de99079 Add date header to please strict mail servers 2015-04-17 21:56:53 +02:00
Julius Volz
91b8b8847f Make notification flag names consistent with Prometheus style. 2015-04-14 13:42:29 +02:00
Cameron Davison
f4f6ceccc4 Add simple support for HipChat notifications 2015-04-13 17:49:46 -05:00
Logan Hanks
c43957beb2 Separate out SMTP auth logic and test it. 2015-03-13 08:14:39 -07:00
Logan Hanks
183ee95a3e Check error on SplitHostPort. 2015-03-12 20:57:29 -07:00
Logan Hanks
e746596de0 Fix logic error in auth mechanism loop. 2015-03-12 20:55:31 -07:00
Logan Hanks
6d140d7571 Add more general PLAIN/CRAM-MD5 auth support. 2015-03-12 16:54:40 -07:00
Logan Hanks
f6ba424325 Replace -smtpAuth flag with SMTP_AUTH env var. 2015-03-12 13:01:16 -07:00
Logan Hanks
4883eaae5e Add -smtpAuth flag. 2015-03-12 11:19:48 -07:00
juliusv
942cd35dea Merge pull request #33 from antonlindstrom/feature/notification-pushover
add pushover as notification method
2015-02-17 14:12:35 +01:00
Anton Lindström
a0c156e3e6 add pushover as notification method
This adds https://pushover.net/ as a way of notification.
2015-02-17 05:44:45 +00:00
Julius Volz
5a1771be63 Add From/To (non-envelope) headers to email notifications. 2015-02-16 20:35:45 +01:00
Julius Volz
0642137a11 Fix alert expiry crashbug.
No, the array representation of a binary heap is of course *not* sorted.

Change-Id: Ib18c9b7e1bee24391f98d73135ac19c77026b168
2014-10-27 23:50:31 +01:00
Julius Volz
20b146657b Update HTTP/clientlib dependencies + cleanups.
Change-Id: I175ac4874b25358dd569866e3d575ba49e4357f2
2014-10-27 23:50:22 +01:00
Julius Volz
6d789102f9 Fix wrong repeat rate setting in config.go.
Change-Id: I362f4d2ad85eb21a64ac85814fdc2fa85da6a7f4
2013-09-11 17:55:47 +02:00
Julius Volz
be0e958d8f Major rewrite of alertmanager, adding inhibit support.
Change-Id: If11f3aec70ba2ac816b9b824a387ffdd2e51790f
2013-09-11 15:34:02 +02:00
Julius Volz
7c21fb1f5a Shorten links to Prometheus console in alertmanager UI.
Change-Id: Id22736ba573b031bc88b95442fa04e71893a52ae
2013-08-20 16:23:33 +02:00