From 900d963c644744cce9f7026b7b1d3def744f1a32 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Sat, 21 Nov 2026 14:24:25 -0500 Subject: [PATCH 1/8] [Data Observability] Document AI review of anomalies and correct training period Add the AI review of flagged points, Model Instructions behavior, and the data the reviewer receives to the anomaly detection guide. Add a model configuration section, state the training period rules per monitor cadence and metric type, align the training period on the Data Observability monitor page, and add the guide to the sidebar. Co-Authored-By: Claude Opus 5.5 --- hugo/config/_default/menus/main.en.yaml | 5 ++ .../guides/anomaly_detection.md | 62 ++++++++++++++++++- .../en/monitors/types/data_observability.md | 2 +- 3 files changed, 65 insertions(+), 4 deletions(-) diff --git a/hugo/config/_default/menus/main.en.yaml b/hugo/config/_default/menus/main.en.yaml index 87d5a07d9cd9..792bfd756f7e 100644 --- a/hugo/config/_default/menus/main.en.yaml +++ b/hugo/config/_default/menus/main.en.yaml @@ -5779,6 +5779,11 @@ menu: identifier: quality_monitoring_guides parent: quality_monitoring weight: 400000 + - name: Anomaly Detection + url: data_observability/quality_monitoring/guides/anomaly_detection + identifier: quality_monitoring_guides_anomaly_detection + parent: quality_monitoring_guides + weight: 1000000 - name: Jobs Monitoring url: data_observability/jobs_monitoring/ pre: data-jobs-monitoring diff --git a/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md b/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md index fd9ee93201b5..ddd1eb536ff6 100644 --- a/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md +++ b/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md @@ -1,6 +1,6 @@ --- title: Anomaly Detection for Data Observability Monitors -description: "Understand how the anomaly detection model works for Data Observability monitors, including training, model states, seasonality, and metric-specific behaviors." +description: "Understand how the anomaly detection model works for Data Observability monitors, including training, model states, seasonality, metric-specific behaviors, and the AI review of flagged points." further_reading: - link: '/data_observability/quality_monitoring/' tag: 'Documentation' @@ -16,13 +16,23 @@ further_reading: By default, [Data Observability monitors][1] use an anomaly detection model tailored to common patterns in data quality metrics such as table freshness and row count. -The model learns from the metric's history to set expected bounds. When an observed value falls outside those bounds, the monitor triggers an alert. +The model learns from the metric's history to set expected bounds. When an observed value falls outside those bounds, an [AI reviewer](#ai-review-of-flagged-points) checks the point. The monitor alerts unless the reviewer finds that the value matches the metric's normal behavior. ## Training period When you create an anomaly detection monitor, it enters a training period. During training, the monitor collects historical values to learn the metric's baseline behavior. It does not trigger alerts during this period, and the monitor chart appears in blue. -Training typically takes between 3 and 9 days. Because many data pipelines behave differently on weekends, the model needs to observe both weekday and weekend behavior. +Training typically takes 3 to 7 days for a monitor that runs more than once a day, or about 9 days for a monitor that runs once a day. Because many data pipelines behave differently on weekends, the model needs to observe both weekday and weekend behavior. A monitor leaves training when it has both of the following: + +- At least nine evaluations over at least 3 days. +- A full weekend and a full weekday of evaluations, or more than 7 days of history. + +Some monitors follow different rules: + +- **Freshness**: The monitor stays in training until it observes at least one table update. If it has observed only one update, it stays in training until three times the longest observed time between updates has passed since that update. +- **Row Count**: If the row count stays flat from the weekend into Monday, the monitor stays in training until the count changes, for up to 8 days of history. +- **Custom SQL with the Default model, and metrics that have only returned one value**: The monitor stays in training until it has at least 7 days of history. +- **Job duration** (Preview): The monitor leaves training after at least five runs over at least 1 day that include a full weekday of runs. It doesn't wait for a weekend. After training completes, the monitor can alert. The chart shows the observed values over time, with bounds above and below the line as a shaded area showing expected values. The color shows the current state: @@ -85,9 +95,55 @@ Annotations have two effects: See [Annotate bounds][2] on the Data Observability Monitor page for available annotation types and how to apply them. +## Model configuration + +{{< callout url="#" btn_hidden="true" header="Preview" >}} +Model configuration settings are in Preview. Contact your Datadog representative to enable them for your organization. +{{< /callout >}} + +The [model configuration settings][3] change how the model sets bounds: + +- {{< ui >}}Sensitivity{{< /ui >}} multiplies the width of the bounds that the model computes from the metric's history. The default is `3`. Lower values narrow the bounds and produce more alerts, and higher values widen them. +- {{< ui >}}Minimum upper bound size{{< /ui >}} and {{< ui >}}Minimum lower bound size{{< /ui >}} take raw values in the metric's units, such as rows or seconds. They set the smallest distance between the predicted value and each bound, and the model can still set wider bounds. For integer metrics such as Row Count, the model rounds the value up to a whole number. +- {{< ui >}}Model Instructions{{< /ui >}} don't change the bounds. The AI reviewer reads them when a value falls outside the bounds. See [Model Instructions](#model-instructions). + +## AI review of flagged points + +Monitors that use the {{< ui >}}Anomalies{{< /ui >}} detection method send each newly flagged point to an AI reviewer before they alert. A point is newly flagged when its value falls outside the expected bounds and the previous value was within them. Monitors that use the {{< ui >}}Thresholds{{< /ui >}} detection method don't use the reviewer. + +The reviewer analyzes the metric's history and compares the flagged value with earlier periods of normal behavior in the same context, such as the same hour or day of the week. The review has one of the following outcomes: + +- If the reviewer finds earlier normal periods that match the flagged value's pattern and timing, it dismisses the point. The monitor widens the bounds at that point to include the observed value and doesn't alert. +- If the reviewer confirms the anomaly, the monitor alerts as usual. Later points in the same anomaly aren't reviewed again. +- If the review doesn't complete, for example because it times out or the monitor has reached its daily review limit, the monitor alerts on the original bounds. + +The reviewer can only dismiss flagged points. It doesn't narrow the bounds or create alerts. To get alerts on values that fall within the bounds, adjust {{< ui >}}Sensitivity{{< /ui >}} or annotate the bounds with {{< ui >}}Missed alert{{< /ui >}}. + +The reviewer dismisses a Row Count value of `0` only when the metric's history shows that zeros are routine, for example earlier zeros that recurred and recovered. This applies even when the monitor's Model Instructions describe the value as expected. + +### Model Instructions + +{{< ui >}}Model Instructions{{< /ui >}}, one of the Preview [model configuration settings][3], give the reviewer plain-language context about behavior you expect, such as `Don't alert on large increases during US holidays`. The reviewer reads them only for flagged points: + +- If the instructions describe the flagged point as expected, the reviewer dismisses it, even when the metric's history alone doesn't support a dismissal. +- Instructions that name specific tables, columns, or group values apply only to the series that match them. +- Instructions can cover every point, for example by asking not to alert on the monitor at all. The reviewer then treats every flagged point as expected. + +### Data the reviewer receives + +The reviewer uses a large language model. For each flagged point, it receives the following: + +- The metric type, and the metric's history of values with their expected upper and lower bounds. +- Bound annotations on the series that end before the flagged point, with their types and time ranges. +- Identifiers for your organization, the monitor, and the series. +- If the monitor has Model Instructions: the instructions, the name of the monitored table or column, its entity type and platform, and the series' group tag keys and values. + +The reviewer doesn't receive rows from your tables, table descriptions, or the text of Custom SQL queries. + ## Further reading {{< partial name="whats-next/whats-next.html" >}} [1]: /monitors/types/data_observability/ [2]: /monitors/types/data_observability/#annotate-bounds +[3]: /monitors/types/data_observability/#model-configuration diff --git a/hugo/content/en/monitors/types/data_observability.md b/hugo/content/en/monitors/types/data_observability.md index a32c5d74fcb9..0d630cbf6feb 100644 --- a/hugo/content/en/monitors/types/data_observability.md +++ b/hugo/content/en/monitors/types/data_observability.md @@ -194,7 +194,7 @@ If your SQL query includes a `GROUP BY` clause, list the grouped columns as a co Select a detection method: -- {{< ui >}}Anomalies{{< /ui >}}: Alert when the metric deviates from an expected pattern. Threshold values are not required. The anomaly model requires **3 to 7 days** to train (including a weekend), depending on how frequently the underlying data updates. During the training period, the monitor does not trigger alerts and is visualized in blue. After training completes, the monitor is shown in green when in a normal state and red when in an outlier state. +- {{< ui >}}Anomalies{{< /ui >}}: Alert when the metric deviates from an expected pattern. Threshold values are not required. The anomaly model's training includes a weekend and typically takes **3 to 7 days** for a monitor that runs more than once a day, or **about 9 days** for a monitor that runs once a day. During the training period, the monitor does not trigger alerts and is visualized in blue. After training completes, the monitor is shown in green when in a normal state and red when in an outlier state. - {{< ui >}}Thresholds{{< /ui >}}: Alert when the metric crosses a fixed value. Set the comparison operator (`above`, `above or equal to`, `below`, `below or equal to`, `equal to`, or `not equal to`) and define a {{< ui >}}Critical{{< /ui >}} threshold (required) and optionally a {{< ui >}}Warning{{< /ui >}} threshold. For more details, see [Configure Monitors][8]. ### WHERE clause From 75766963d1662d4f8d10122cd8662de2403e9be8 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Sat, 21 Nov 2026 14:26:55 -0500 Subject: [PATCH 2/8] Hold the AI reviewer data section for confirmation Co-Authored-By: Claude Opus 5.5 --- .../quality_monitoring/guides/anomaly_detection.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md b/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md index ddd1eb536ff6..e7ccd6525c01 100644 --- a/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md +++ b/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md @@ -129,17 +129,6 @@ The reviewer dismisses a Row Count value of `0` only when the metric's history s - Instructions that name specific tables, columns, or group values apply only to the series that match them. - Instructions can cover every point, for example by asking not to alert on the monitor at all. The reviewer then treats every flagged point as expected. -### Data the reviewer receives - -The reviewer uses a large language model. For each flagged point, it receives the following: - -- The metric type, and the metric's history of values with their expected upper and lower bounds. -- Bound annotations on the series that end before the flagged point, with their types and time ranges. -- Identifiers for your organization, the monitor, and the series. -- If the monitor has Model Instructions: the instructions, the name of the monitored table or column, its entity type and platform, and the series' group tag keys and values. - -The reviewer doesn't receive rows from your tables, table descriptions, or the text of Custom SQL queries. - ## Further reading {{< partial name="whats-next/whats-next.html" >}} From e715b294c47d2822546a83e33e510cb990e5b25e Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Sat, 21 Nov 2026 14:43:34 -0500 Subject: [PATCH 3/8] Address technical and style review Correct the Row Count training rule, split the Custom SQL and single-value rules, describe the Sensitivity slider by its labels, drop the seconds example for minimum bound sizes, and tighten the review outcomes. Split long sentences. Co-Authored-By: Claude Opus 5.5 --- .../guides/anomaly_detection.md | 25 ++++++++++--------- .../en/monitors/types/data_observability.md | 2 +- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md b/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md index e7ccd6525c01..4af47279844c 100644 --- a/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md +++ b/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md @@ -16,13 +16,13 @@ further_reading: By default, [Data Observability monitors][1] use an anomaly detection model tailored to common patterns in data quality metrics such as table freshness and row count. -The model learns from the metric's history to set expected bounds. When an observed value falls outside those bounds, an [AI reviewer](#ai-review-of-flagged-points) checks the point. The monitor alerts unless the reviewer finds that the value matches the metric's normal behavior. +The model learns from the metric's history to set expected bounds. When an observed value moves outside those bounds, an [AI reviewer](#ai-review-of-flagged-points) checks the point. The monitor alerts unless the reviewer finds that the value matches the metric's normal behavior. ## Training period When you create an anomaly detection monitor, it enters a training period. During training, the monitor collects historical values to learn the metric's baseline behavior. It does not trigger alerts during this period, and the monitor chart appears in blue. -Training typically takes 3 to 7 days for a monitor that runs more than once a day, or about 9 days for a monitor that runs once a day. Because many data pipelines behave differently on weekends, the model needs to observe both weekday and weekend behavior. A monitor leaves training when it has both of the following: +Training typically takes 3 to 7 days for a monitor that runs more than once a day. A monitor that runs once a day typically trains for about 9 days. Because many data pipelines behave differently on weekends, the model needs to observe both weekday and weekend behavior. A monitor leaves training when it has both of the following: - At least nine evaluations over at least 3 days. - A full weekend and a full weekday of evaluations, or more than 7 days of history. @@ -30,8 +30,9 @@ Training typically takes 3 to 7 days for a monitor that runs more than once a da Some monitors follow different rules: - **Freshness**: The monitor stays in training until it observes at least one table update. If it has observed only one update, it stays in training until three times the longest observed time between updates has passed since that update. -- **Row Count**: If the row count stays flat from the weekend into Monday, the monitor stays in training until the count changes, for up to 8 days of history. -- **Custom SQL with the Default model, and metrics that have only returned one value**: The monitor stays in training until it has at least 7 days of history. +- **Row Count**: In its first 7 days, the monitor stays in training on Saturdays and Sundays until it has evaluated on three weekend days. If the row count has stayed flat since before Monday, the monitor stays in training until the count changes or Monday ends (UTC). This hold ends after 8 days of history. +- **Custom SQL with the Default model**: The monitor stays in training until it has at least 7 days of history. +- **Single-value metrics**: If the metric has only returned one value, the monitor stays in training until it has at least 7 days of history. - **Job duration** (Preview): The monitor leaves training after at least five runs over at least 1 day that include a full weekday of runs. It doesn't wait for a weekend. After training completes, the monitor can alert. The chart shows the observed values over time, with bounds above and below the line as a shaded area showing expected values. The color shows the current state: @@ -98,28 +99,28 @@ See [Annotate bounds][2] on the Data Observability Monitor page for available an ## Model configuration {{< callout url="#" btn_hidden="true" header="Preview" >}} -Model configuration settings are in Preview. Contact your Datadog representative to enable them for your organization. +Model configuration settings are in Preview. {{< /callout >}} The [model configuration settings][3] change how the model sets bounds: -- {{< ui >}}Sensitivity{{< /ui >}} multiplies the width of the bounds that the model computes from the metric's history. The default is `3`. Lower values narrow the bounds and produce more alerts, and higher values widen them. -- {{< ui >}}Minimum upper bound size{{< /ui >}} and {{< ui >}}Minimum lower bound size{{< /ui >}} take raw values in the metric's units, such as rows or seconds. They set the smallest distance between the predicted value and each bound, and the model can still set wider bounds. For integer metrics such as Row Count, the model rounds the value up to a whole number. +- {{< ui >}}Sensitivity{{< /ui >}} sets a multiplier on the width of the bounds that the model computes from the metric's history. The default multiplier is `3`. Move the slider toward {{< ui >}}More alerts{{< /ui >}} to narrow the bounds, or toward {{< ui >}}Fewer alerts{{< /ui >}} to widen them. +- {{< ui >}}Minimum upper bound size{{< /ui >}} and {{< ui >}}Minimum lower bound size{{< /ui >}} set the smallest distance between the predicted value and each bound. The model can still set wider bounds. Enter values in the metric's own units, such as rows for Row Count or percentage points for Nullness. For integer metrics such as Row Count, the model rounds the value up to a whole number. - {{< ui >}}Model Instructions{{< /ui >}} don't change the bounds. The AI reviewer reads them when a value falls outside the bounds. See [Model Instructions](#model-instructions). ## AI review of flagged points -Monitors that use the {{< ui >}}Anomalies{{< /ui >}} detection method send each newly flagged point to an AI reviewer before they alert. A point is newly flagged when its value falls outside the expected bounds and the previous value was within them. Monitors that use the {{< ui >}}Thresholds{{< /ui >}} detection method don't use the reviewer. +Monitors that use the {{< ui >}}Anomalies{{< /ui >}} detection method send each newly flagged point to an AI reviewer before they alert. A point is newly flagged when its value falls outside the expected bounds and the previous value didn't. Monitors that use the {{< ui >}}Thresholds{{< /ui >}} detection method don't use the reviewer. -The reviewer analyzes the metric's history and compares the flagged value with earlier periods of normal behavior in the same context, such as the same hour or day of the week. The review has one of the following outcomes: +The reviewer analyzes the metric's history. It compares the flagged value with earlier periods of normal behavior in the same context, such as the same hour or day of the week. The review has one of the following outcomes: - If the reviewer finds earlier normal periods that match the flagged value's pattern and timing, it dismisses the point. The monitor widens the bounds at that point to include the observed value and doesn't alert. -- If the reviewer confirms the anomaly, the monitor alerts as usual. Later points in the same anomaly aren't reviewed again. -- If the review doesn't complete, for example because it times out or the monitor has reached its daily review limit, the monitor alerts on the original bounds. +- If the reviewer doesn't dismiss the point, the monitor alerts as usual. Later points in the same anomaly aren't reviewed again. +- If the review doesn't run or doesn't finish, the point keeps its original bounds and the monitor alerts as usual. For example, this happens when the monitor has reached its daily review limit or the review times out. The reviewer can only dismiss flagged points. It doesn't narrow the bounds or create alerts. To get alerts on values that fall within the bounds, adjust {{< ui >}}Sensitivity{{< /ui >}} or annotate the bounds with {{< ui >}}Missed alert{{< /ui >}}. -The reviewer dismisses a Row Count value of `0` only when the metric's history shows that zeros are routine, for example earlier zeros that recurred and recovered. This applies even when the monitor's Model Instructions describe the value as expected. +The reviewer dismisses a Row Count value of `0` only when the metric's history shows that zeros are routine. For example, the metric has dropped to zero and recovered several times before. This applies even when the monitor's {{< ui >}}Model Instructions{{< /ui >}} describe the value as expected. ### Model Instructions diff --git a/hugo/content/en/monitors/types/data_observability.md b/hugo/content/en/monitors/types/data_observability.md index 0d630cbf6feb..9b2ca43d43ec 100644 --- a/hugo/content/en/monitors/types/data_observability.md +++ b/hugo/content/en/monitors/types/data_observability.md @@ -194,7 +194,7 @@ If your SQL query includes a `GROUP BY` clause, list the grouped columns as a co Select a detection method: -- {{< ui >}}Anomalies{{< /ui >}}: Alert when the metric deviates from an expected pattern. Threshold values are not required. The anomaly model's training includes a weekend and typically takes **3 to 7 days** for a monitor that runs more than once a day, or **about 9 days** for a monitor that runs once a day. During the training period, the monitor does not trigger alerts and is visualized in blue. After training completes, the monitor is shown in green when in a normal state and red when in an outlier state. +- {{< ui >}}Anomalies{{< /ui >}}: Alert when the metric deviates from an expected pattern. Threshold values are not required. The anomaly model's training includes a weekend and typically takes **3 to 7 days**. A monitor that runs once a day trains for **about 9 days**. During the training period, the monitor does not trigger alerts and is visualized in blue. After training completes, the monitor is shown in green when in a normal state and red when in an outlier state. - {{< ui >}}Thresholds{{< /ui >}}: Alert when the metric crosses a fixed value. Set the comparison operator (`above`, `above or equal to`, `below`, `below or equal to`, `equal to`, or `not equal to`) and define a {{< ui >}}Critical{{< /ui >}} threshold (required) and optionally a {{< ui >}}Warning{{< /ui >}} threshold. For more details, see [Configure Monitors][8]. ### WHERE clause From b01f33b888c288185ab6c88c6dfd555340f4913b Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Sat, 21 Nov 2026 21:35:26 -0500 Subject: [PATCH 4/8] Keep the monitor page edit to one line and refine the anomaly guide - Monitor page: revert the training sentence, which moves to the monitor page PR, and link the Model Instructions row to the guide's section. - Guide: state the job duration training exit after 7 days and the wider first-week upper bound, note that job duration monitors are reviewed and that the review doesn't run where the organization doesn't allow AI model providers, and explain Alert after N consecutive anomalies. - Use UI label formatting for detection methods and Custom SQL model types. Co-Authored-By: Claude Opus 5.5 --- .../quality_monitoring/guides/anomaly_detection.md | 14 ++++++++------ .../en/monitors/types/data_observability.md | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md b/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md index 4af47279844c..9dbb002a6476 100644 --- a/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md +++ b/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md @@ -10,7 +10,7 @@ further_reading: text: 'Data Observability Monitor' --- -**Note**: This page applies to anomaly-based Data Observability monitors only. If your monitor uses the **Threshold** detection method, this content does not apply. +**Note**: This page applies to anomaly-based Data Observability monitors only. If your monitor uses the {{< ui >}}Thresholds{{< /ui >}} detection method, this content does not apply. ## Overview @@ -33,7 +33,7 @@ Some monitors follow different rules: - **Row Count**: In its first 7 days, the monitor stays in training on Saturdays and Sundays until it has evaluated on three weekend days. If the row count has stayed flat since before Monday, the monitor stays in training until the count changes or Monday ends (UTC). This hold ends after 8 days of history. - **Custom SQL with the Default model**: The monitor stays in training until it has at least 7 days of history. - **Single-value metrics**: If the metric has only returned one value, the monitor stays in training until it has at least 7 days of history. -- **Job duration** (Preview): The monitor leaves training after at least five runs over at least 1 day that include a full weekday of runs. It doesn't wait for a weekend. +- **Job duration** (Preview): Each job leaves training when it has at least five completed runs over at least 1 day, and either a full weekday (Monday through Friday) of runs or more than 7 days of history. It doesn't wait for a weekend. While a job has less than 7 days of history, the model raises its upper bound toward four times the job's longest run. This extra margin shrinks to zero by day 7. After training completes, the monitor can alert. The chart shows the observed values over time, with bounds above and below the line as a shaded area showing expected values. The color shows the current state: @@ -59,13 +59,13 @@ Freshness monitors alert when the time since the last refresh is longer than exp Row count monitors alert not only when there is an unusual change, but also when a row count flatlines, meaning it has not changed for longer than normal. A stalled row count may indicate a broken pipeline. -### Percentage (e.g. nullness, uniqueness) +### Percentage (such as nullness and uniqueness) Percentage metrics are scaled from 0 to 100. If the metric has never been 0 or 100, a change to these values triggers an alert. ### Custom SQL -For Custom SQL monitors, select a model type for your metric: **Freshness**, **Percentage** or **Default**. The **Default** model infers the range from the metric's history. For example, if a custom metric has never returned a negative value, the model constrains the lower bound to 0. +For Custom SQL monitors, select a model type for your metric: {{< ui >}}Freshness{{< /ui >}}, {{< ui >}}Percentage{{< /ui >}}, or {{< ui >}}Default{{< /ui >}}. The {{< ui >}}Default{{< /ui >}} model infers the range from the metric's history. For example, if a custom metric has never returned a negative value, the model constrains the lower bound to 0. ## Seasonality @@ -108,15 +108,17 @@ The [model configuration settings][3] change how the model sets bounds: - {{< ui >}}Minimum upper bound size{{< /ui >}} and {{< ui >}}Minimum lower bound size{{< /ui >}} set the smallest distance between the predicted value and each bound. The model can still set wider bounds. Enter values in the metric's own units, such as rows for Row Count or percentage points for Nullness. For integer metrics such as Row Count, the model rounds the value up to a whole number. - {{< ui >}}Model Instructions{{< /ui >}} don't change the bounds. The AI reviewer reads them when a value falls outside the bounds. See [Model Instructions](#model-instructions). +{{< ui >}}Alert after N consecutive anomalies{{< /ui >}} also leaves the bounds unchanged. It sets how many flagged evaluations in a row the monitor needs before it alerts. + ## AI review of flagged points -Monitors that use the {{< ui >}}Anomalies{{< /ui >}} detection method send each newly flagged point to an AI reviewer before they alert. A point is newly flagged when its value falls outside the expected bounds and the previous value didn't. Monitors that use the {{< ui >}}Thresholds{{< /ui >}} detection method don't use the reviewer. +Monitors that use the {{< ui >}}Anomalies{{< /ui >}} detection method send each newly flagged point to an AI reviewer before they alert. A point is newly flagged when its value falls outside the expected bounds and the previous value didn't. This includes job duration monitors that use {{< ui >}}Anomalies{{< /ui >}}. Monitors that use the {{< ui >}}Thresholds{{< /ui >}} detection method don't use the reviewer. The reviewer analyzes the metric's history. It compares the flagged value with earlier periods of normal behavior in the same context, such as the same hour or day of the week. The review has one of the following outcomes: - If the reviewer finds earlier normal periods that match the flagged value's pattern and timing, it dismisses the point. The monitor widens the bounds at that point to include the observed value and doesn't alert. - If the reviewer doesn't dismiss the point, the monitor alerts as usual. Later points in the same anomaly aren't reviewed again. -- If the review doesn't run or doesn't finish, the point keeps its original bounds and the monitor alerts as usual. For example, this happens when the monitor has reached its daily review limit or the review times out. +- If the review doesn't run or doesn't finish, the point keeps its original bounds and the monitor alerts as usual. For example, this happens when the monitor has reached its daily review limit or the review times out. The review also doesn't run for organizations whose settings don't allow AI model providers, such as HIPAA-enabled organizations. The reviewer can only dismiss flagged points. It doesn't narrow the bounds or create alerts. To get alerts on values that fall within the bounds, adjust {{< ui >}}Sensitivity{{< /ui >}} or annotate the bounds with {{< ui >}}Missed alert{{< /ui >}}. diff --git a/hugo/content/en/monitors/types/data_observability.md b/hugo/content/en/monitors/types/data_observability.md index 9b2ca43d43ec..f66a9da8fd34 100644 --- a/hugo/content/en/monitors/types/data_observability.md +++ b/hugo/content/en/monitors/types/data_observability.md @@ -194,7 +194,7 @@ If your SQL query includes a `GROUP BY` clause, list the grouped columns as a co Select a detection method: -- {{< ui >}}Anomalies{{< /ui >}}: Alert when the metric deviates from an expected pattern. Threshold values are not required. The anomaly model's training includes a weekend and typically takes **3 to 7 days**. A monitor that runs once a day trains for **about 9 days**. During the training period, the monitor does not trigger alerts and is visualized in blue. After training completes, the monitor is shown in green when in a normal state and red when in an outlier state. +- {{< ui >}}Anomalies{{< /ui >}}: Alert when the metric deviates from an expected pattern. Threshold values are not required. The anomaly model requires **3 to 7 days** to train (including a weekend), depending on how frequently the underlying data updates. During the training period, the monitor does not trigger alerts and is visualized in blue. After training completes, the monitor is shown in green when in a normal state and red when in an outlier state. - {{< ui >}}Thresholds{{< /ui >}}: Alert when the metric crosses a fixed value. Set the comparison operator (`above`, `above or equal to`, `below`, `below or equal to`, `equal to`, or `not equal to`) and define a {{< ui >}}Critical{{< /ui >}} threshold (required) and optionally a {{< ui >}}Warning{{< /ui >}} threshold. For more details, see [Configure Monitors][8]. ### WHERE clause @@ -230,7 +230,7 @@ For monitors using the {{< ui >}}Anomalies{{< /ui >}} detection method, expand t | {{< ui >}}Minimum upper bound size{{< /ui >}} | The minimum distance between the predicted value and the upper bound, in the metric's units. Freshness uses seconds, and percentage metrics, such as Nullness, use percentage points. All other metrics use the metric's value, such as rows for Row Count, distinct values for Cardinality, or the returned value for Custom SQL. For example, a value of `1000` on a Row Count monitor keeps the upper bound at least 1,000 rows above the predicted value. A value of `3600` on a Freshness monitor keeps it at least one hour above. The model can still set a wider bound. | | {{< ui >}}Minimum lower bound size{{< /ui >}} | The minimum distance between the predicted value and the lower bound, in the metric's own units. For example, a value of `1000` on a Row Count monitor keeps the lower bound at least 1,000 rows below the predicted value. The model can still set a wider bound. | | {{< ui >}}Sensitivity{{< /ui >}} | Controls the width of the expected bounds, relative to the metric's normal variation. Move the slider toward {{< ui >}}Fewer alerts{{< /ui >}} for wider bounds, or toward {{< ui >}}More alerts{{< /ui >}} for narrower bounds. The slider sets a bound-width multiplier whose values roughly correspond to numbers of standard deviations. The default is `3`, and the range is `0.1` (narrowest bounds) to `6` (widest bounds). In the API, set this value with the `sensitivity` option. Configured minimum bound sizes still apply. | -| {{< ui >}}Model Instructions{{< /ui >}} | Provides plain-language context, up to 500 characters, about metric behavior you expect and don't want alerts for. For example: `Don't alert on large increases during US holidays`. | +| {{< ui >}}Model Instructions{{< /ui >}} | Provides plain-language context, up to 500 characters, about metric behavior you expect and don't want alerts for. For example: `Don't alert on large increases during US holidays`. An AI reviewer reads these instructions when a value falls outside the bounds. See [Model Instructions](/data_observability/quality_monitoring/guides/anomaly_detection/#model-instructions). | Use the following guidelines to tune a monitor: From b375a6435669d5c03c7561b832600abfcc1ae06f Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Sat, 21 Nov 2026 21:36:01 -0500 Subject: [PATCH 5/8] Shorten the job duration training sentence Co-Authored-By: Claude Opus 5.5 --- .../quality_monitoring/guides/anomaly_detection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md b/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md index 9dbb002a6476..2ca28915390e 100644 --- a/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md +++ b/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md @@ -33,7 +33,7 @@ Some monitors follow different rules: - **Row Count**: In its first 7 days, the monitor stays in training on Saturdays and Sundays until it has evaluated on three weekend days. If the row count has stayed flat since before Monday, the monitor stays in training until the count changes or Monday ends (UTC). This hold ends after 8 days of history. - **Custom SQL with the Default model**: The monitor stays in training until it has at least 7 days of history. - **Single-value metrics**: If the metric has only returned one value, the monitor stays in training until it has at least 7 days of history. -- **Job duration** (Preview): Each job leaves training when it has at least five completed runs over at least 1 day, and either a full weekday (Monday through Friday) of runs or more than 7 days of history. It doesn't wait for a weekend. While a job has less than 7 days of history, the model raises its upper bound toward four times the job's longest run. This extra margin shrinks to zero by day 7. +- **Job duration** (Preview): Each job stays in training until it has at least five completed runs over at least 1 day. It also needs a full weekday (Monday through Friday) of runs, or more than 7 days of history. It doesn't wait for a weekend. While a job has less than 7 days of history, the model raises its upper bound toward four times the job's longest run. This extra margin shrinks to zero by day 7. After training completes, the monitor can alert. The chart shows the observed values over time, with bounds above and below the line as a shaded area showing expected values. The color shows the current state: From 7b71d6093ebc02c4ad655438f9034f9f9bc78705 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Sun, 22 Nov 2026 06:50:17 -0500 Subject: [PATCH 6/8] Remove the Preview label from job duration training Co-Authored-By: Claude Opus 5.5 --- .../quality_monitoring/guides/anomaly_detection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md b/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md index 2ca28915390e..641db4564402 100644 --- a/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md +++ b/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md @@ -33,7 +33,7 @@ Some monitors follow different rules: - **Row Count**: In its first 7 days, the monitor stays in training on Saturdays and Sundays until it has evaluated on three weekend days. If the row count has stayed flat since before Monday, the monitor stays in training until the count changes or Monday ends (UTC). This hold ends after 8 days of history. - **Custom SQL with the Default model**: The monitor stays in training until it has at least 7 days of history. - **Single-value metrics**: If the metric has only returned one value, the monitor stays in training until it has at least 7 days of history. -- **Job duration** (Preview): Each job stays in training until it has at least five completed runs over at least 1 day. It also needs a full weekday (Monday through Friday) of runs, or more than 7 days of history. It doesn't wait for a weekend. While a job has less than 7 days of history, the model raises its upper bound toward four times the job's longest run. This extra margin shrinks to zero by day 7. +- **Job duration**: Each job stays in training until it has at least five completed runs over at least 1 day. It also needs a full weekday (Monday through Friday) of runs, or more than 7 days of history. It doesn't wait for a weekend. While a job has less than 7 days of history, the model raises its upper bound toward four times the job's longest run. This extra margin shrinks to zero by day 7. After training completes, the monitor can alert. The chart shows the observed values over time, with bounds above and below the line as a shaded area showing expected values. The color shows the current state: From 14efd42e67472f9d3b291aefb0a3c286baf04f39 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Sun, 22 Nov 2026 07:18:43 -0500 Subject: [PATCH 7/8] Add a screenshot placeholder for the anomaly monitor chart Co-Authored-By: Claude Opus 5.5 --- .../quality_monitoring/guides/anomaly_detection.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md b/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md index 641db4564402..fbcd643d16c7 100644 --- a/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md +++ b/hugo/content/en/data_observability/quality_monitoring/guides/anomaly_detection.md @@ -43,6 +43,8 @@ After training completes, the monitor can alert. The chart shows the observed va | Green | Normal | The observed value is within expected bounds. | | Red | Alerting | The observed value fell outside expected bounds. | + + ## Alert state When an anomaly is found, the model will remain in alert state for some time, until either the observed value returns to the original expected bounds or the anomaly has persisted long enough that the model considers it a new normal state. To resolve the monitor manually and return it to normal state, use [annotations][2]. From 4880d90a82e854b1e228be809e2a02c3fbbb3839 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Sun, 22 Nov 2026 16:49:52 -0500 Subject: [PATCH 8/8] Leave the Anomaly Detection nav entry to the guides PR DataDog/documentation PR 41959 renames the Quality Monitoring "Guides" nav entry to "How-To Guides", which the left nav needs before it shows any guide as a child, and adds the Anomaly Detection entry with it. Adding the same entry here would duplicate its identifier and conflict with that PR, so this PR no longer edits the menu. Co-Authored-By: Claude Opus 5.5 --- hugo/config/_default/menus/main.en.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hugo/config/_default/menus/main.en.yaml b/hugo/config/_default/menus/main.en.yaml index 792bfd756f7e..87d5a07d9cd9 100644 --- a/hugo/config/_default/menus/main.en.yaml +++ b/hugo/config/_default/menus/main.en.yaml @@ -5779,11 +5779,6 @@ menu: identifier: quality_monitoring_guides parent: quality_monitoring weight: 400000 - - name: Anomaly Detection - url: data_observability/quality_monitoring/guides/anomaly_detection - identifier: quality_monitoring_guides_anomaly_detection - parent: quality_monitoring_guides - weight: 1000000 - name: Jobs Monitoring url: data_observability/jobs_monitoring/ pre: data-jobs-monitoring