---
title: How to Configure Data Retention
description: Extend how long DigitalOcean Insights retains metrics, logs, and traces beyond the included 30 days.
product: Insights
url: https://docs.digitalocean.com/products/insights/how-to/configure-data-retention/
last_updated: "2026-11-23"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# How to Configure Data Retention

DigitalOcean Insights provides metrics, logs, traces, dashboards, and alerts to help you monitor, analyze, and troubleshoot supported DigitalOcean resources.

DigitalOcean Insights retains metrics, logs, and traces for 30 days at no additional cost. You can extend retention for each telemetry type for an additional charge.

**Note**:

  Retention settings are available only in the DigitalOcean Control Panel, not through the DigitalOcean API or CLI.

The **Data Retention** section shows the total retention period for each telemetry type, including the initial 30 days. For example, three months of retention includes the initial 30 days and two additional months.

**Note**:

  Insights automatically deletes data when its configured retention period ends. To delete data before the retention period ends, [request data deletion](https://docs.digitalocean.com/products/insights/how-to/request-data-deletion/index.html.md) or contact [support](https://cloudsupport.digitalocean.com).

For guidance on choosing retention periods, see [Configure Data Retention Based on Your Needs](https://docs.digitalocean.com/products/insights/concepts/telemetry-best-practices/index.html.md#configure-data-retention-based-on-your-needs).

To configure data retention, go to the [**Settings**](https://cloud.digitalocean.com/insights/settings?utm_source=docs-agent&utm_medium=md) tab in the Control Panel.

## Change Retention Period

To change the retention period, on the right, click **Edit**.

Click the retention dropdown menu for each telemetry type, **Metrics**, **Logs**, or **Traces**, to select an extended retention period.

You can select **None** to disable extended retention or choose a duration from **1 day** to **5 years**.

Extended retention incurs additional charges. For pricing information, see [Insights Pricing](https://docs.digitalocean.com/products/insights/details/pricing/index.html.md).

Then, click **Save** to apply your changes.