Sending Alerts to Jira

787 views
Skip to first unread message

kavya KULSHRESHTHA

unread,
Feb 24, 2016, 6:48:42 AM2/24/16
to Prometheus Developers
I have a requirement to create a Jira ticket as soon as an alert is raised by Alertmanager. Can Jira be integrated?

Brian Brazil

unread,
Feb 24, 2016, 6:54:39 AM2/24/16
to kavya KULSHRESHTHA, Prometheus Developers
On 24 February 2016 at 11:48, kavya KULSHRESHTHA <kavya.kul...@gmail.com> wrote:
I have a requirement to create a Jira ticket as soon as an alert is raised by Alertmanager. Can Jira be integrated?

There's two options. One is to use the email functionality of the alertmanager to raise a ticket in Jira. You could also write an integration via Jira's apis using the alertmanager's webhook. 

--

Fabian Reinartz

unread,
Feb 24, 2016, 9:31:23 AM2/24/16
to Brian Brazil, kavya KULSHRESHTHA, Prometheus Developers

I just implemented this for SoundCloud via webhooks. Ironically JIRA being so generic makes it difficult to build a generic integration for Alertmanager.

I can open source the code on the weekend after some adjustments.


--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Fabian Reinartz

unread,
Feb 28, 2016, 4:57:21 PM2/28/16
to Prometheus Developers
I've published a version of a JIRA integration: https://github.com/fabxc/jiralerts

Be aware that JIRA allows heavy customization and thus there's no one-fits-all solution.
Especially transitions are tricky – the script tries to find one of the common ones for the respective issue.

If you want to handle things differently, this should still be a good place to go from.
Reply all
Reply to author
Forward
0 new messages