For AI agents: The documentation index is at 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).
DigitalOcean Insights is not a HIPAA-eligible service and is strictly excluded from DigitalOcean’s Business Associate Agreement (BAA). Customers are contractually prohibited from transmitting, storing, or processing Protected Health Information (PHI) within Insights via logs, traces, custom metrics, or log forwarding, even if originating from resources under an active BAA. For teams covered by a BAA, Insights blocks log and trace ingestion but does not block metrics, which remain permissible only to the extent they contain zero PHI.
For more information, see Insights Data Protection.
Platform-level operational metrics do not contain personal data. Logs and traces may contain personally identifiable information (PII), credentials, or other sensitive data emitted by your applications.
Operational security follows DigitalOcean’s Shared Responsibility Model. DigitalOcean secures the underlying infrastructure; customers maintain exclusive responsibility for telemetry contents emitted by their workloads and access control configurations.
Ingested logs and traces do not undergo automatic scrubbing, masking, or redaction. Customers are solely responsible for removing or masking Personally Identifiable Information (PII), credentials, or sensitive data on the client side prior to ingestion.
For more information, see Insights Data Protection.
DigitalOcean Insights lets you enable or disable telemetry collection for individual resources. You can manage log and trace collection in the DigitalOcean Control Panel, and metrics collection through the DigitalOcean API or CLI.
Logs and traces share a monthly ingestion allowance of five GB per billing team at no additional cost, across all projects within the team. Additional ingestion costs $0.50 per GB. For more information, see Insights Pricing.
Enable or Disable Telemetry Collection Using the Control Panel
To manage collection, go to the Settings tab in the Control Panel.
In the Data Ingestion section, find the resource in the table, on the right, click …, and then click Manage opt-in / opt-out to open the Observability window.
Standard data retention periods apply according to selected service tiers. Disabling log or trace collection stops future ingestion, typically within one minute, but may take longer because ingestion is handled by a distributed system. Disabling collection does not delete previously collected logs or traces, which remain stored until their configured retention period expires or an explicit deletion request is completed.
Explicit deletion requests take up to 30 days to process across all hot storage and backup subsystems.
For more information, see Insights Data Protection.
In the Observability window, you can configure the following:
- Logs: Enable the toggle to collect supported platform logs or disable it to stop collecting them.
- Traces: Enable the toggle to collect supported platform traces using the configured sampling policy, or disable it to stop collecting them. You can change the trace sampling rate in the Data Volume Controls section.
Then, click Save to apply your changes.
Enable or Disable Telemetry Collection Using Automation
You can view and update telemetry collection for individual resources using the DigitalOcean CLI or API. Each resource has separate metrics, logs, and traces signals that you can enable or disable, and you identify each resource by its Uniform Resource Name (URN), such as do:droplet:12345. When you update a resource, signals you omit stay unchanged. If you use a custom-scoped token, updating signals requires both the insights:create and insights:update scopes.
Enable or Disable Telemetry Collection via the CLI
To retrieve a list of resources with recorded signal settings, use the doctl insights resource list command. To filter the results, add the --product-type or --region flag.
How to List Resource Signal Enablement Using the DigitalOcean CLI
-
Install doctl, the official DigitalOcean CLI.
-
Create a personal access token and save it for use with doctl.
-
Use the token to grant doctl access to your DigitalOcean account.
-
Finally, run doctl insights resource list. Basic usage looks like this, but you can read the usage docs for more details:
doctl insights resource list [flags]
The following example lists Droplet resources in nyc3:
doctl insights resource list --product-type droplet --region nyc3
To retrieve the signal settings for a specific resource, use the doctl insights resource get command with the resource’s URN.
How to Retrieve Resource Signal Enablement Using the DigitalOcean CLI
-
Install doctl, the official DigitalOcean CLI.
-
Create a personal access token and save it for use with doctl.
-
Use the token to grant doctl access to your DigitalOcean account.
-
Finally, run doctl insights resource get. Basic usage looks like this, but you can read the usage docs for more details:
doctl insights resource get <resource-urn> [flags]
The following example retrieves signal enablement for a Droplet:
doctl insights resource get do:droplet:12345
To enable or disable signals for a resource, use the doctl insights resource update command with the resource’s URN and the --metrics, --logs, or --traces flag set to true or false, such as --logs=true.
How to Update Resource Signal Enablement Using the DigitalOcean CLI
-
Install doctl, the official DigitalOcean CLI.
-
Create a personal access token and save it for use with doctl.
-
Use the token to grant doctl access to your DigitalOcean account.
-
Finally, run doctl insights resource update. Basic usage looks like this, but you can read the usage docs for more details:
doctl insights resource update <resource-urn> [flags]
The following example enables metrics and logs while disabling traces:
doctl insights resource update do:droplet:12345 --region nyc3 --metrics=true --logs=true --traces=false
Enable or Disable Telemetry Collection via the API
To retrieve a list of resources with recorded signal settings, send a request to the List Resource Signal Enablement endpoint. You can filter the results by product type and region.
How to List Resource Signal Enablement Using the DigitalOcean API
Create a personal access token and save it for use with the API.
cURL
Send a GET request to https://api.digitalocean.com/v2/insights/resources.
Using cURL:
curl -X GET \
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
"https://api.digitalocean.com/v2/insights/resources?filter.product_types=droplet&pagination.per_page=50"
To retrieve the signal settings for a specific resource, send its URN to the Retrieve Resource Signal Enablement endpoint.
How to Retrieve Resource Signal Enablement Using the DigitalOcean API
Create a personal access token and save it for use with the API.
cURL
Send a GET request to https://api.digitalocean.com/v2/insights/resources/{resource_urn}.
Using cURL:
curl -X GET \
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
"https://api.digitalocean.com/v2/insights/resources/do:droplet:12345"
To enable or disable signals for a resource, send its URN to the Update Resource Signal Enablement endpoint with metrics, logs, or traces set to true or false.
How to Update Resource Signal Enablement Using the DigitalOcean API
Create a personal access token and save it for use with the API.
cURL
Send a PUT request to https://api.digitalocean.com/v2/insights/resources/{resource_urn}/signals.
Using cURL:
curl -X PUT \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
-d '{"region":"nyc3","metrics":true,"logs":true}' \
"https://api.digitalocean.com/v2/insights/resources/do:droplet:12345/signals"