Skip to content

DBM: Add query retention period section #28992

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

Merged
merged 1 commit into from
Apr 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion content/en/database_monitoring/data_collected.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,21 @@ Datadog Database Monitoring collects per-query metrics for the top 200 normalize

Query samples have no limits on the number of unique normalized queries tracked, but the sampling is biased towards queries which are slow or frequent. It is possible for a query sample to be selected, but have no associated query metrics. This is the case when the query was slow or frequent for a brief period of time, but was not sustained enough to become a top query.

## Query retention periods

Datadog retains Database Monitoring query data based on the type of data collected:

- Query Metrics are retained for 15 months.
- Query Samples are retained for 15 days.

For more information, see [Data Retention Periods][5].

## Other queries

_Other Queries_ represent the metrics of all queries which do not appear in the top 200. Because a query may be a top query for some time frames but not others, the metrics for a particular query may sometimes be tracked as a distinct normalized query and other times counted in Other Queries.


[1]: /dashboards/
[2]: /monitors/
[3]: /notebooks/
[4]: /data_security/logs/
[5]: /data_security/data_retention_periods/
Loading