We want to create Jira tasks when we receive alerts on Grafana. I researched it a little bit and I have found some documents for Prometheus but unfortunately couldn’t find a document for Grafana about this. I want to automate this process and I need a way to create Jira tasks with specific alerts.
Using both Grafana and Jira APIs. First, you need to get all alerts with the state of “alerting” via Grafana API. Then you need to parse the JSON for Jira API’s format. I do this every minute with my python script.
My recommendation to you is to check both Grafana and Jira APIs and develop a script with them.
Definitely! I’ve done something similar using Grafana’s webhook feature to trigger tasks in Jira. You’ll need to configure the webhook to hit a custom script or use an integration tool like Zapier. There might not be direct docs for Grafana and Jira, but it’s doable with some tweaking. For better performance, you might want to check the difference between epic and story in Jira as well, as it can help you organize tasks more efficiently by grouping related alerts under larger epics instead of creating individual stories for each alert. It keeps things cleaner and easier to manage long-term.