Configure anomaly detection monitors in Datadog to alert on unusual metric patterns

domain: docs.datadoghq.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create a monitor via POST /api/v1/monitor with type set to metric alert and a query using the anomalies() function: anomalies(metric_name{scope}, 'algorithm', deviation_count)
  2. Choose the algorithm parameter: basic for metrics without seasonality, agile for metrics that shift level over time, or robust for metrics with frequent spikes that should not reset the baseline
  3. Set the deviation_count threshold (e.g., 2) to control sensitivity; lower values alert more aggressively and higher values require a larger deviation before firing
  4. Configure the thresholds object with critical and warning values (expressed as fraction of time anomalous, e.g., 1.0 means the entire evaluation window must be anomalous for critical)
  5. Set options.seasonality to hourly, daily, or weekly so the model accounts for time-of-day or day-of-week patterns in the metric
  6. Validate the monitor by viewing the Preview graph in the Datadog UI to inspect historical anomaly detection overlays before enabling notifications

Known gotchas

Related routes

Set up Datadog Watchdog anomaly monitors for automated anomaly detection
docs.datadoghq.com · 5 steps · unrated
Implement a multi-region synthetic monitoring strategy using Datadog Synthetics
datadoghq.com · 6 steps · unrated
Configure Datadog Observability Pipelines to sample logs by pattern and reduce ingestion volume before data reaches Datadog
docs.datadoghq.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans