What is the Incident Management Feature?
The Incident Management Tool allows teams without dedicated incident management software to track and resolve incidents directly within DevStats. This ensures accurate calculation of key metrics such as Mean Time to Recovery (MTTR), a critical component of the DORA Metrics Dashboard.
By declaring active incidents and marking them as resolved, teams can maintain a reliable record of incident handling and response times. This tool is designed for teams aiming to improve their incident response process and monitor their MTTR effectively, even without external tools.
Prerequisites for Manual Creation
- Open Settings → Incidents.
- Select API or DevStats Incident Management as the incident source.
- Click Save Settings, then open Incidents.
This source supports both API submissions and manual incident management. You do not need an API token to create incidents through the interface. The Declare Active Incident and Create Resolved Incident buttons are hidden when Git Provider, Incident.io, or Datadog is the selected source.
When Incidents Contribute to MTTR
An active incident without a resolution date (resolved_at) is excluded from MTTR. To include it, set its status to Resolved and provide the correct Resolved At date and time.
For each eligible resolved incident, recovery time is resolved_at - started_at. With Average selected, MTTR is the average of these durations. The incident must match the report's repository/squad filters, start on or after the selected period's start, and be resolved on or before its end.
Using the DevStats Interface
DevStats provides two options for managing incidents via the user interface. Only resolved incidents that match the report filters contribute to MTTR:
- Create Resolved Incidents Use this option to record incidents that have already been detected and resolved. Provide their start and resolution dates so they can contribute to MTTR when they match the report filters.
- Declare and Track Active Incidents This option allows you to manage incidents in real-time. Declare an active incident when it occurs, and update its status as you investigate and resolve it. Once resolved, change the status to "Resolved" and provide the resolution date and time. Until then, the incident does not contribute to MTTR.
Using the DevStats API
If you use an external incident management tool, you can submit and update incidents programmatically via the DevStats API. This allows you to integrate incident tracking directly into your existing workflows without using the DevStats UI.