xixipangma / jiralerts

Prometheus Alertmanager integration for JIRA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jiralerts

This is a basic JIRA integration for Alertmanager. It receives Alertmanager webhook messages and files labeled issues for it. If an alert stops firing or starts firing again, tickets are closed or reopened.

Given how generic JIRA is, the integration attempts several different transitions that may be available for an issue.

Consider this an opinionated example snippet. It may not fit your use case without modification.

Running it

JIRA_USERNAME=<your_username> JIRA_PASSWORD=<your_password> ./main.py 'https://<your_jira>'

In your Alertmanager receiver configurations:

receivers:
- name: 'jira_issues'
  webhook_configs:
  - url: 'http://<jira_address>/<jira_project>/<single_label>'

A typical usage could be a single 'ALERTS' projects where the label in the URL refers to the affected system or the team that should handle the issue.

About

Prometheus Alertmanager integration for JIRA


Languages

Language:Python 100.0%