Create metric to track incidents and change requests blocking deployments
Summary
Incidents and Change Requests with the blocks deployments label block deployments to gstg and gprd. Create a metric that tracks the time for which deployments are blocked, and by how many incidents/CRs.
Proposal
Create a gauge called issues_blocking_deployments
.
Use issue webhooks from gitlab-com/gl-infra/production>, so that Delivery-metrics is notified when the blocks deployments label is added/removed to an issue. When the label is added, increment the gauge, and when the label is removed, decrement the gauge.
We will also have to react to events like an incident being marked mitigated or resolved.
We can have a label to distinguish between incidents and change requests.
Edited by Reuben Pereira