How to create jira ticket automatically for prometheus alert

Kumar December 6, 2019

In my organization ,we often get prometheus alert.
I am planning to create jira ticket automatically when prometheus critical alert fires.
And when the same alerts comes ,it should append with the old jira ticket.
Do you guys any idea about this?

Thanks
Anish

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 7, 2019

Rig up Prometheus to send an email to Jira when the first alert happens, and read the issue key that is created as a response.  Then if the alert happens again, get it to use that issue key in the subject of any further emails to Jira.

You could also do this with REST calls instead of emails, but it's a bit more complex

Kumar December 8, 2019

@Nic Brough -Adaptavist- @Can you tell me how to do with the help of webhook and Rest Api 

Do you have  any samples/documentation with examples so that I can go through.

We don't use SMTP .I don't think email handler will work for us

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 26, 2019

Ok, you'll need Prometheus to make calls to the rest API - start at https://developer.atlassian.com/cloud/jira/platform/rest/

Suggest an answer

Log in or Sign up to answer