Incidents

The Incidents setting defines where incident data comes from and how DevStats detects incidents used by MTTR and DORA metrics.

Data Sources

  • Git Provider: Detect incidents from pull requests.
  • API or DevStats Incident Management: Send incidents from another system through the API or track them manually in DevStats.
  • Incident.io: Synchronize incidents from an Incident.io workspace.
  • Datadog: Connect a Datadog account and synchronize its incidents.

For API, Incident.io, and Datadog, select the source and follow the configuration shown on the page.

Tip: Refer to the Incident API guide for instructions on submitting incidents through the API.

Git Provider Detection

Choose one of the available detection methods:

  • PR Merge: Count a pull request as an incident when its branch name matches Hotfix, Bug, or Hotfix + Bug and it is merged into the production branch. Select the repositories where the branch-prefix setting should apply.
  • PR Rollback: Count any Revert pull request merged into the production branch as an incident. This method does not require a branch prefix or repository selection.