DocsRespond

Incident detection

Every minute, Watchdock checks each monitor, server, container and periodic task, and opens one incident per problem. When the problem clears, the incident closes itself.

4 min readEvery planRuns every minute

How it works

A background check runs every minute. For each thing that can break, it asks whether the problem is happening right now:

  • Not yet an incident? It opens one and alerts your channels.
  • Already an incident? It leaves it alone, so a flapping check is one incident, not forty.
  • Problem gone? It resolves the incident and sends a recovery alert with how long it lasted.

Every project gets every alert type below automatically. Nothing to switch on.

What opens an incident

AlertOpens when
Server downThe agent misses two reports in a row (20, 10 or 2 minutes on Hobby, Pro and Team)
Server memoryMemory use reaches 90%
Server diskDisk use reaches 90%
Uptime checkA monitor fails 3 checks in a row
SSL certificateA certificate expires within 30 days (warning), within 7 days (critical), or is invalid
Container downA container is dead or paused, or exits with a non-zero code
Container crash loopA container restarts 3 times within 30 minutes
Container CPU or memoryA container's CPU or memory reaches 90%
Docker downA server that reported containers sends none for 10 minutes
Celery task missedA periodic task is silent for twice its interval
Domain delegationA domain's nameservers stop resolving, which takes every hostname under it down at once

Errors from the Python SDK work differently: they become issues, grouped by root cause, rather than incidents.

One incident per thing

Incidents are tracked per resource. Three crashed containers on one host are three incidents, and two failing monitors are two. You can tell an isolated failure from a host-wide one at a glance, without matching names by hand.

A quiet agent is one exception. If a server stops reporting, Watchdock raises Server down and doesn't also mark every container on it as crashed, because the silence is the agent's, not your containers'.

The lifecycle

StatusMeans
OpenDetected, and nobody has acted on it yet
AcknowledgedSomeone on the team is on it
ResolvedFixed, by Watchdock when the check passes or by your team

Acknowledging tells your team someone has it, and on Team it stops on-call paging for that incident.

Recovery

Each incident checks itself again every minute. A server that reports again, a container that's running again, usage back under 90% or a passing check all resolve it, and the recovery alert says how long it was down.

Troubleshooting

It was already fixed by the time I looked

Detection and recovery both run once a minute, and checks run on your plan's interval, so there's a short lag at each end. Compare the recovery alert's time with when you fixed it.

I expected several incidents and got one

Check whether it's the same container restarting, which is one incident and a likely crash loop, or several containers. Docker has to report a stable name for each.

Nothing opened, but something was clearly down

Check the thing was being watched: the agent was reporting, the monitor was active, the task had run at least once. A server that never reported can't go silent.