Skip to content

Resolve "Close GitLab issue on Recovery alerts from Prometheus"

What does this MR do?

This requires !18046 (merged) to be merged. The base is currently set to that branch so that these MR changes are easy to review.

This MR adds functionality to automatically close an Issue that was opened by a Prometheus alert. When we receive a payload with the resolved status, we look for the Alert using the payload_key.

If an alert is found then we close it while leaving a system note which tells the user that the issue was closed because we received a resolved alert from Prometheus.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Performance and Testing

Closes #13401 (closed)

Edited by Stan Hu

Merge request reports