m-lab / alertmanager-github-receiver

Prometheus Alertmanager webhook receiver that creates GitHub issues from alerts
Apache License 2.0
48 stars 23 forks source link

Add github webhook to signal "auto-close" permission #19

Open stephen-soltesz opened 6 years ago

stephen-soltesz commented 6 years ago

We don't want to close an issue before the alert is 'resolved' -- and we don't want the alertmanager-github-receiver to automatically close issues that we haven't yet updated with an explanation. As a compromise, we could support a directive via a github-webhook to signal the alertmanager-github-receiver that it is okay to auto-close an issue. For example, when adding an explanation to the issue, we could at the same time include the directive:

/autoclose

That would result in alertmanager-github-receiver closing the issue once it received an update from Alertmanager.