> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sweetr.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# DORA Metrics

> Measure software delivery performance with the four DORA metrics.

export const CtaGetStarted = ({label = "Ready to make delivery flow again?"}) => <div style={{
  display: "flex",
  justifyContent: "space-between",
  alignItems: "center",
  marginTop: 80,
  background: "#1a1b1e",
  color: "#fff",
  borderRadius: 8,
  border: "1px solid #69db7c",
  padding: "10px"
}}>
    <div style={{
  display: "flex",
  justifyContent: "space-between",
  alignItems: "center",
  gap: 12,
  fontWeight: 500
}}>
      <img src="https://mintlify.s3-us-west-1.amazonaws.com/sweetrdev/logo.svg" height={24} width={24} style={{
  margin: 0
}} />
      <div>{label}</div>
    </div>
    <a href="https://github.com/apps/sweetr-dev/installations/new" rel="nofollow" className="not-prose" style={{
  padding: "8px 16px",
  background: "#69db7c",
  color: "#000",
  borderRadius: 4,
  fontSize: 14
}}>
      Try now
    </a>
  </div>;

## Demo

<Frame>
  <img src="https://mintcdn.com/sweetrdev/pcmOxpRgFjEN2lK0/images/dora.png?fit=max&auto=format&n=pcmOxpRgFjEN2lK0&q=85&s=63a8ede5fa8036eb1532a1d5438330d4" width="1680" height="1680" data-path="images/dora.png" />
</Frame>

## How it works

DORA metrics are four key indicators of software delivery performance, developed by the [DORA research program](https://dora.dev). Sweetr calculates these metrics from your deployment and incident data.

All metrics support filtering by **team**, **application**, **environment**, and **date range**, and include a comparison against the previous period.

## Metrics

### Deployment Frequency

How often your team deploys to production. Higher frequency indicates smaller, more manageable releases.

* **Calculation:** Count of deployments in the selected period.
* **Chart:** Deployments over time with average per day.

### Lead Time for Changes

The time from first commit to production deployment. Lower lead time means faster delivery.

* **Calculation:** Time from first commit to deployment, averaged across all deployments.
* **Breakdown:**
  * **Coding time**: First commit to pull request creation.
  * **Time to first review**: PR creation to first review.
  * **Time to approve**: First review to approval.
  * **Time to merge**: Approval to merge.
  * **Time to deploy**: Merge to deployment.

### Change Failure Rate

The percentage of deployments that cause an incident. Lower rate indicates more stable releases.

* **Calculation:** `(Incidents caused by deployments / Total deployments) × 100`
* **Requires:** [Incidents](/platform/incidents) linked to deployments.

### Mean Time to Recovery (MTTR)

The average time to recover from an incident. Lower MTTR indicates faster incident response.

* **Calculation:** Average of `resolved at - detected at` across all resolved incidents.
* **Requires:** [Incidents](/platform/incidents) with detection and resolution timestamps.

## Benchmarks

The DORA research program publishes annual benchmarks that categorize teams into Elite, High, Medium, and Low performers. Use these to assess where your team stands and set realistic goals. See the <a href="https://dora.dev/guides/dora-metrics-four-keys/" target="_blank" rel="nofollow">official DORA guides</a> for the latest thresholds.

## Prerequisites

To get the most out of DORA metrics:

<Steps>
  <Step title="Set up applications">
    Create [applications](/platform/applications) and configure their deployment
    settings.
  </Step>

  <Step title="Track deployments">
    Send deployments via the
    [API](/api-reference/deployments/create-deployment), PR merges, or GitHub
    deployment events.
  </Step>

  <Step title="Track incidents">
    Create [incidents](/platform/incidents) manually or enable [Incident
    Detection](/automations/incident-detection) to automate it.
  </Step>
</Steps>

## Related

<CardGroup cols={2}>
  <Card title="Deployments" icon="rocket" href="/platform/deployments" />

  <Card title="Applications" icon="cube" href="/platform/applications" />

  <Card title="Incidents" icon="flame" href="/platform/incidents" />

  <Card title="Incident Detection" icon="circle-dot" href="/automations/incident-detection" />
</CardGroup>

<CtaGetStarted />
