Commit Graph

10 Commits

Author SHA1 Message Date
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
Tomas Karasek b0a879d416 add test for Flowdock notification 2015-07-15 16:24:57 +03: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
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
Johannes 'fish' Ziemke 735e8075d2 Add support to notify for resolved alerts
Change-Id: I31fc51d2a47d92e9d7ac2ba224c7fce02b28444e
2015-04-24 19:29:52 +02:00
Ceesjan Luiten d36de99079 Add date header to please strict mail servers 2015-04-17 21:56:53 +02:00
Logan Hanks c43957beb2 Separate out SMTP auth logic and test it. 2015-03-13 08:14:39 -07:00
Julius Volz 5a1771be63 Add From/To (non-envelope) headers to email notifications. 2015-02-16 20:35:45 +01:00
Julius Volz be0e958d8f Major rewrite of alertmanager, adding inhibit support.
Change-Id: If11f3aec70ba2ac816b9b824a387ffdd2e51790f
2013-09-11 15:34:02 +02:00
Julius Volz 6b17d8cb6a Remove empty lines between labels in email notifications.
Also add test for email formatting.

Change-Id: I309018b021730dee80f9f5bd05eb1a96bf0d237e
2013-08-16 15:14:56 +02:00