MTTD meaning: what is mean time to detect?
MTTD (mean time to detect) is the average time between the start of an incident and the moment it is detected, by monitoring or by a person. It is calculated as the sum of detection delays divided by the number of incidents. A lower MTTD shortens every outage, because nothing can be fixed before it is noticed.
Why MTTD matters
Detection time is pure downtime: users are affected and nobody is working on the problem yet. For short incidents it is often the largest part of the total.
MTTD depends mostly on choices you control: the check interval, confirmation retries, alert thresholds, and whether you watch what users actually do. A customer reporting an outage before your monitoring did is the clearest sign MTTD is too long.
How to measure MTTD
MTTD = Σ (detected − started) ÷ number of incidents worst-case detection for an outside check ≈ check interval + confirmation delay
Worked example
Four incidents last quarter were detected 3, 11, 1 and 5 minutes after they started. The 11-minute one was a cron job that failed silently until someone looked.
- Sum of detection times = 3 + 11 + 1 + 5 = 20 minutes.
- MTTD = 20 ÷ 4 = 5 minutes.
- With a 1-minute check interval and a 12-second confirmation, an outright outage is detected within about 60 + 12 = 72 seconds.
Result: The average is dominated by the silent cron failure. A heartbeat on that job would have cut its detection to the grace period and brought MTTD down far more than faster HTTP checks.
How the check interval sets detection time
If an outage starts at a random moment between two external checks, it waits on average half an interval for the next check, plus the confirmation check (12 seconds in Vigil). The worst case is a full interval plus confirmation. Add the request timeout if the server hangs instead of refusing connections.
| Check interval | Average detection | Worst case | Worst case as share of a 99.9% month (43.2 min) | Share of a 99.99% month (4.32 min) |
|---|---|---|---|---|
| Every 1 min | 42 s | 1 min 12 s | 2.8% | 28% |
| Every 2 min | 1 min 12 s | 2 min 12 s | 5.1% | 51% |
| Every 5 min | 2 min 42 s | 5 min 12 s | 12.0% | 120% |
| Every 10 min | 5 min 12 s | 10 min 12 s | 23.6% | 236% |
| Every 15 min | 7 min 42 s | 15 min 12 s | 35.2% | 352% |
At a 5-minute interval, detection alone can use 12% of a 99.9% monthly budget per incident; for a 99.99% target even one-minute checks use more than a quarter of the month before anyone is alerted. That is why tight SLOs need request-level alerting on top of outside checks.
What detects which kind of failure
| Detector | Catches | Typical detection time |
|---|---|---|
| External uptime or API check | outright outages, DNS, TLS and routing failures, wrong status codes or content | about one check interval |
| Heartbeat on a job | jobs that did not run, hung or failed silently | the expected period plus the grace time |
| Error-rate or latency alert from APM | partial failures: one endpoint, a share of requests, slowdowns | the evaluation window, often 5 to 10 minutes |
| Real user monitoring | slow or broken pages for real visitors, by device or region | minutes when traffic is high; never when there is none |
| A customer report | everything, eventually | the longest, and the most expensive |
Worked example: a silent failure without and with a heartbeat
A nightly backup job is scheduled at 02:00. One night the disk is full and the job exits before doing anything. Nothing errors, nothing pages. Someone notices the missing backup file at 09:40: a detection time of 7 hours 40 minutes, or 460 minutes, for one incident.
With a heartbeat that expects a ping every day and has a 30-minute grace period, the alert fires at 02:30: 30 minutes after the job should have run. One incident like this in a quarter with three others detected in about 3 minutes gives an MTTD of (460 + 3 + 3 + 3) ÷ 4 ≈ 117 minutes; with the heartbeat, (30 + 3 + 3 + 3) ÷ 4 = 9.75 minutes. Set one up with the backup monitoring guide or the cron expression tool.
How to find when an incident really started
- Error logs and APM: the first failed request or exception of the kind that later caused the alert.
- Load balancer metrics: the minute the 5xx rate or latency left its normal band.
- Deploys and config changes: a release a few minutes before the first error is often the start, even if errors began slowly.
- Real user data: a jump in JavaScript errors or failed page loads.
Write the start time into the incident record during the postmortem. MTTD computed from the alert time is always zero and tells you nothing.
Common mistakes
- Measuring from the alert. The start is when users were first affected, which you often learn from logs afterwards. Measured from the alert, MTTD is zero by definition.
- Long intervals on critical paths. A 15-minute interval means up to 15 minutes of undetected downtime.
- Only checking the homepage. Login, checkout and the API can fail while the homepage works.
- Ignoring silent failures. Jobs that do not run never raise an error. They need heartbeats.
- Retries that hide outages. Each confirmation retry adds delay. Three retries a minute apart turn a 1-minute check into a 4-minute detector; one quick confirmation is enough.
- Waiting for a total outage. Partial failures (one region, one endpoint, 5% of requests) are detected late if every alert waits for 100% failure. Alert on error rate and latency too.
How Vigil handles MTTD
- Uptime and API checks run at the interval you set per monitor (the fastest allowed depends on the plan), and each failure is confirmed by a second check about 12 seconds later.
- Heartbeats catch jobs that never run, browser checks catch broken user journeys, and adaptive latency alerts catch slowdowns that are not errors yet.
- Each incident records when it was detected, so you can compare detection with the start time you find in logs, and Time Detective shows what happened just before.
MTTD (mean time to detect): frequently asked questions
What is a good MTTD?
For an outright outage of a monitored endpoint, minutes or less, limited by the check interval. Subtle problems such as slow pages or wrong data usually take longer; the aim is to shorten it over time.
How do I reduce MTTD?
Check more often, monitor what users do (APIs, logins, checkouts) and not only the homepage, add heartbeats for jobs, and alert on latency and error-rate changes as well as hard failures.
Is MTTD part of MTTR?
When MTTR is measured from the start of the incident, yes: detection time is included. When it is measured from the alert, it is not. Say which you use.