Repository navigation
Document relative monitor thresholds in Preview #41749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
phillip-dd
wants to merge
5
commits into
master
Choose a base branch
from
dd/phillip-baker/relative-thresholds-preview-20261112
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+391
−4
Draft
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
441468f
Document relative monitor thresholds in Preview
datadog-bits af400b7
Add standalone relative thresholds guide
datadog-bits 60efd84
Use multipliers in relative threshold docs
datadog-bits 16fea31
Clarify percentiles in relative thresholds
datadog-bits 7781899
Clarify relative threshold configuration steps
datadog-bits File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||
| --- | ||||||
| title: How to monitor non-static thresholds | ||||||
| description: "Monitor variable thresholds using seasonal patterns, reference metrics, and composite monitors for dynamic alerting scenarios." | ||||||
| description: "Monitor variable thresholds using relative thresholds (Preview), seasonal patterns, reference metrics, and composite monitors." | ||||||
| further_reading: | ||||||
| - link: "/monitors/types/composite/" | ||||||
| tag: "Documentation" | ||||||
|
|
@@ -16,10 +16,27 @@ A typical metric monitor triggers an alert if a single metric goes above a speci | |||||
|
|
||||||
| Watchdog powered monitors (namely [anomaly][1] and [outlier][2]) are particularly useful when there isn't an explicit definition of your metric being off-track. However, when possible, you should use regular monitors with tailored alert conditions to maximize precision and minimize time-to-alert for your specific use case. | ||||||
|
|
||||||
| This guide covers common use cases for alerting on non-static thresholds: | ||||||
| Choose an approach based on the comparison you need: | ||||||
| - [Use a **relative threshold (Preview)** to compare a metric to its historical baseline](#relative-thresholds) | ||||||
| - [Alert on a metric that goes off track outside of **seasonal variations**](#seasonal-threshold) | ||||||
| - [Alert based on the value of another **reference** metric](#reference-threshold) | ||||||
|
|
||||||
| ## Relative thresholds | ||||||
|
|
||||||
| {{< callout url="#" btn_hidden="true" header="Preview" >}} | ||||||
| Relative thresholds are in Preview for metric monitors. | ||||||
| {{< /callout >}} | ||||||
|
|
||||||
| A relative threshold compares the evaluated value of a metric monitor to a historical baseline from the same query. Datadog calculates a separate threshold for each group, so one monitor can cover resources with different normal values. | ||||||
|
|
||||||
| For example, alert when the average job duration over five minutes exceeds `1.5x` its average over the last week. | ||||||
|
|
||||||
| The current value and historical baseline can use different aggregations. For distribution metrics, compare a percentile to a historical percentile or to a historical average. With a `p95:` metric variable, an `avg` rollup averages the p95 timeseries values. See [Percentile queries][7] for all three comparison examples. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Style: This link goes to a section on another page, so the link text needs to name that page.
Suggested change
|
||||||
|
|
||||||
| Choose a historical aggregation and a lookback window from 1 week to 6 months. Historical thresholds are recalculated daily at midnight UTC and remain constant between updates. The monitor continues evaluating current values at its configured evaluation frequency. | ||||||
|
|
||||||
| For configuration steps, query syntax, critical recovery thresholds, and Preview limitations, see the [Relative Thresholds guide][6]. | ||||||
|
|
||||||
| ## Seasonal threshold | ||||||
|
|
||||||
| ### Context | ||||||
|
|
@@ -187,3 +204,5 @@ The last monitor is a Composite monitor, which sends an alert only if the two pr | |||||
| [3]: /integrations/nginx/?tab=host#data-collected | ||||||
| [4]: /account_management/billing/usage_metrics/#types-of-usage | ||||||
| [5]: /logs/log_configuration/logs_to_metrics/#logs-usage-metrics | ||||||
| [6]: /monitors/guide/relative-thresholds/ | ||||||
| [7]: /monitors/guide/relative-thresholds/#percentile-queries | ||||||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style: This link goes to a section on another page, so the link text needs to name that page. Without the page name, readers expect a section on the page they're reading.