Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 884 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 884 Bytes

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.