Retention settings are available only in the DigitalOcean Control Panel, not through the DigitalOcean API or CLI.
How to Configure Data Retention
Last verified 23 Nov 2026
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.
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.
Insights automatically deletes data when its configured retention period ends. To delete data before the retention period ends, request data deletion or contact support.
For guidance on choosing retention periods, see Configure Data Retention Based on Your Needs.
To configure data retention, go to the Settings 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.
Then, click Save to apply your changes.