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).
How to Create, Edit, and Delete Dashboards
Last verified 23 Nov 2026
DigitalOcean Insights provides metrics, logs, traces, dashboards, and alerts to help you monitor, analyze, and troubleshoot supported DigitalOcean resources.
Dashboards let you visualize and compare metrics from supported DigitalOcean resources to monitor resource health and performance. You can customize charts, queries, variables, and groups to organize and display data over a selected time range.
Available metrics depend on the selected resource type. Metrics are currently available for Droplets, Kubernetes, Managed Databases, Load Balancers, App Platform, Functions, AI/ML products, and networking services.
You can enable available Insights telemetry when creating a supported DigitalOcean resource. The available options depend on the resource type.
For Droplets, under the Monitoring section, select Improved Metrics and monitoring (Free) to install the DigitalOcean metrics agent (do-agent). For GPU Droplets created with AI/ML Ready images, enable GPU Observability during resource creation. The agent collects supported system and GPU metrics, but logs and traces are not currently supported.
For supported managed resources, you can enable log and trace collection during resource creation and disable it later if needed. Insights is enabled by default for Managed Agents.
To access your dashboards, go to the Dashboards tab in the DigitalOcean Control Panel.
View a Dashboard
When viewing a dashboard, you can select the region and variable values used to display metric data, and adjust the time range and refresh interval.
To view a dashboard, find and select the dashboard you want to view.
Choose a Region
When viewing a dashboard, on the left, click the Region dropdown menu to select the region whose metrics you want to display.
Charts display metrics from the selected region. For metrics that are available in multiple regions, Insights queries every region where the metric is available, and the chart displays an indicator to show that it includes data from more than one region.
Select a Variable
If the dashboard includes variables, use the variable controls next to the region selector to select or set the values used by the dashboard.
Set the Time Range
In the top-right corner, click the Time range dropdown menu to select a relative range from Last 5 minutes to Last 14 days, or specify an absolute range using the From and To fields.
Use the Timezone dropdown menu to select the timezone for displaying metric timestamps. The default is your browser’s local timezone.
Set the Refresh Interval
In the top-right corner, click the Refresh interval dropdown menu to select Off, 1m, 5m, 15m, 30m, 1h, 2h, or 1d.
To refresh the metric data manually, click the refresh icon.
To change the default time range and refresh interval when you open the dashboard, edit the dashboard.
View Dashboards Using Automation
You can view dashboards using the DigitalOcean CLI or API to retrieve your team’s dashboards and their definitions.
View Dashboards via the CLI
To retrieve a list of your team’s dashboards, use the doctl insights dashboard list command.
Use the token to grant doctl access to your DigitalOcean account.
doctl auth init
Finally, run doctl insights dashboard list. Basic usage looks like this, but you can read the usage docs for more details:
doctl insights dashboard list [flags]
The following example lists dashboards by name:
doctl insights dashboard list --sort name --sort-direction asc
To retrieve a specific dashboard, use the doctl insights dashboard get command with the dashboard UUID. To include the dashboard definition in the output, add the --output json flag.
How to Retrieve a Dashboard Using the DigitalOcean CLI
curl -X GET \
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN"\
"https://api.digitalocean.com/v2/insights/dashboards/7c9e6679-7425-40de-944b-e07fc1f90ae7"
Create Dashboard
Create a dashboard to monitor related metrics from supported resources in one place. After creating the dashboard, add charts, groups, and variables to customize how it displays data.
To create a dashboard, in the top-right corner, click Create dashboard to open the Create dashboard window.
Choose a Name
In the Name field, enter a descriptive name that identifies the application, environment, or resources the dashboard monitors. For example, “Droplet CPU Utilization”.
Add a Description
In the Description field, enter a brief description of the dashboard’s purpose and the metrics it displays, if needed. For example, “Focus on CPU utilization across Droplets”.
Import a Dashboard
You can create a dashboard by importing a dashboard file from your local machine.
In the Import Dashboard section, either drag and drop a dashboard file, or click browse to select a file from your local machine.
Finalize
After setting up your dashboard, click Create Dashboard. The new dashboard appears in the Dashboards tab. To find a dashboard, enter its name in the Search dashboards field.
You can create dashboards using the DigitalOcean CLI or API by sending a dashboard definition that describes the dashboard’s charts, layout, and variables. The dashboard’s name and description come from the definition’s spec.display.name and spec.display.description fields, and dashboard names must be unique within a team. To check a definition before you create or update a dashboard, validate it against the dashboard JSON Schema.
Create a Dashboard via the CLI
To retrieve the JSON Schema that dashboard definitions must follow, use the doctl insights dashboard schema command.
How to Retrieve the Dashboard Schema Using the DigitalOcean CLI
To create a dashboard, use the doctl insights dashboard create command with the --spec-file flag set to the path of a dashboard definition in JSON or YAML format.
How to Create a Dashboard Using the DigitalOcean CLI
curl -X GET \
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN"\
"https://api.digitalocean.com/v2/insights/dashboards/schema"
To create a dashboard, send a request to the Create a Dashboard endpoint with the dashboard definition, serialized as a JSON string, in the spec field.
How to Create a Dashboard Using the DigitalOcean API
curl -X POST \
-H "Content-Type: application/json"\
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN"\
-d '{"spec":"{\"kind\":\"Dashboard\",\"apiVersion\":\"perses.dev/v1alpha1\",\"spec\":{\"display\":{\"name\":\"Droplet CPU\",\"description\":\"CPU utilization across production Droplets.\"},\"duration\":\"1h\",\"variables\":[],\"layouts\":[{\"kind\":\"Grid\",\"spec\":{\"items\":[{\"x\":0,\"y\":0,\"width\":12,\"height\":6,\"content\":{\"$ref\":\"#/spec/panels/cpu\"}}]}}],\"panels\":{\"cpu\":{\"kind\":\"Panel\",\"spec\":{\"display\":{\"name\":\"CPU utilization\"},\"plugin\":{\"kind\":\"TimeSeriesChart\",\"spec\":{}},\"queries\":[{\"kind\":\"TimeSeriesQuery\",\"spec\":{\"plugin\":{\"kind\":\"MetricsTimeSeriesQuery\",\"spec\":{\"metricName\":\"do.droplets.cpu_utilization\",\"kind\":\"gauge\",\"filters\":[],\"groupBy\":[]}}}}]}}}}}"}'\
"https://api.digitalocean.com/v2/insights/dashboards"
Edit Dashboard
To edit your dashboard, find and select the dashboard you want to edit, and then in the top-right corner, click Settings to open the Dashboard Settings window.
In the General tab, you can edit the following:
In the Name field, enter a descriptive name that identifies the application, environment, or resources the dashboard monitors, such as “Droplet CPU Utilization”.
In the Description field, enter a brief summary of the dashboard’s purpose and the metrics it displays. For example, “Focus on CPU utilization across Droplets”.
Click the Default time range dropdown menu to select the time range shown when the dashboard opens. Options range from five minutes through seven days. The default is 1 hour. Use shorter ranges for recent activity and longer ranges for broader trends.
Click the Default refresh interval dropdown menu to select an interval from one minute to one day, or Off to disable automatic refreshes. The default is Off. Use shorter intervals for frequently changing metrics.
To delete the dashboard, in the bottom-left corner, click Delete dashboard to open the Delete dashboard window.
Warning
Deleting a dashboard permanently removes the dashboard and its panel layout configuration.
In the Dashboard name field, enter the dashboard name to confirm the deletion, and then, click Delete.
After updating the settings, click Save, and then in the top-right corner of the dashboard, click Save to save the dashboard.
Edit Dashboard Variables
To add or edit dashboard variables, click the Variables tab. Variables let you define reusable values that you can reference in dashboard queries, titles, and descriptions.
The Variables tab contains the following sections:
Variables: Add, edit, show, hide, or delete custom variables.
Built-in variables: View predefined variables for the dashboard’s time range, name, and query intervals.
Variables usage: View variable syntax, examples, and formatting options.
To add a custom variable, either click Add your first variable or, in the top-right corner, click +Add variable.
In the Variable field, enter a unique name for the variable. Use a name that identifies the value the variable represents, such as droplet_urn.
Optionally, in the Display Name field, enter the name shown in the dashboard’s variable controls, such as “Droplet”.
Optionally, in the Description field, enter a description explaining the purpose of the custom variable. For example, “Selects the Droplet whose CPU utilization metrics appear on the dashboard.”
Then, in the Variable Type section, select Text or List to define how users enter or select values for the variable.
If you select List, choose the source that populates the list (Resources, Static List, Label values, or Label names).
Configure the variable based on its type and source:
In the Value field, enter the text value for the variable. For example, do:droplet:123456789.
Optionally, enable the Constant toggle to prevent dashboard viewers from changing the value. The toggle is disabled by default. Enable it when the variable should always use the configured value.
In the Variable Type section, select List, click the Source dropdown menu, and then select Resources.
Then, click the Resource type dropdown menu and select the resource type you want to monitor.
Note
Not all DigitalOcean resource types are supported. Available metrics vary by resource type.
Then, click the Dropdown Options section, and then configure the available values and display settings for the variable.
In the Default value (optional) field, enter the value to display by default. For example, do:droplet:123456789.
Optionally, enable the Allow multiple values toggle to select more than one value from the variable’s dropdown menu. This option is disabled by default.
Then, enable the Allow all values toggle to let users select all available values. In the Custom all value field, enter the value to use when all options are selected. The default is $__all.
Note
The Allow all values option is not available for Resources list variables.
Then, click the Sort dropdown menu to choose how the values are ordered (which are None, Alphabetical, Case-insensitive, or Numerical). The default is None, which leaves the values unsorted.
In the Variable Type section, select List, click the Source dropdown menu, and then select Static List.
In the Label field, enter the name displayed for the option, such as “Droplet 1”.
In the Value field, enter the corresponding value, such as do:droplet:123456789.
Afterwards, click + Add option to add another option to the list, if needed.
To delete an option, click the trash icon next to it.
Then, click the Dropdown Options section, and then configure the available values and display settings for the variable.
In the Default value (optional) field, enter the value to display by default. For example, do:droplet:123456789.
Optionally, enable the Allow multiple values toggle to select more than one value from the variable’s dropdown menu. This option is disabled by default.
Then, enable the Allow all values toggle to let users select all available values. In the Custom all value field, enter the value to use when all options are selected. The default is $__all.
Note
The Allow all values option is not available for Resources list variables.
Then, click the Sort dropdown menu to choose how the values are ordered (which are None, Alphabetical, Case-insensitive, or Numerical). The default is None, which leaves the values unsorted.
In the Variable Type section, select List, click the Source dropdown menu, and then select Label values.
In the Metric (optional) field, enter a metric to limit the available values to those associated with that metric, such as do.droplets.cpu_utilization.
In the Label field, enter the label whose values you want to use for the list, such as resource.urn.
In the Capturing regexp field, optionally enter a regular expression to filter or transform list values. For example, ^(do:droplet:.*)$ keeps matching Droplet URNs unchanged and excludes values that don’t match.
Then, click the Dropdown Options section, and then configure the available values and display settings for the variable.
In the Default value (optional) field, enter the value to display by default. For example, do:droplet:123456789.
Optionally, enable the Allow multiple values toggle to select more than one value from the variable’s dropdown menu. This option is disabled by default.
Then, enable the Allow all values toggle to let users select all available values. In the Custom all value field, enter the value to use when all options are selected. The default is $__all.
Note
The Allow all values option is not available for Resources list variables.
Then, click the Sort dropdown menu to choose how the values are ordered (which are None, Alphabetical, Case-insensitive, or Numerical). The default is None, which leaves the values unsorted.
In the Variable Type section, select List, click the Source dropdown menu, and then select Label names.
In the Metric (optional) field, enter a metric to limit the list to label names associated with that metric, such as do.droplets.cpu_utilization.
In the Capturing regexp field, optionally enter a regular expression to filter or transform list values. For example, ^resource\..* matches label names that begin with resource..
Then, click the Dropdown Options section, and then configure the available values and display settings for the variable.
In the Default value (optional) field, enter the value to display by default. For example, do:droplet:123456789.
Optionally, enable the Allow multiple values toggle to select more than one value from the variable’s dropdown menu. This option is disabled by default.
Then, enable the Allow all values toggle to let users select all available values. In the Custom all value field, enter the value to use when all options are selected. The default is $__all.
Note
The Allow all values option is not available for Resources list variables.
Then, click the Sort dropdown menu to choose how the values are ordered (which are None, Alphabetical, Case-insensitive, or Numerical). The default is None, which leaves the values unsorted.
After configuring the variable, click Add Variable.
To manage an existing variable, click the pencil icon to edit its configuration, the eye icon to show or hide the variable, or the trash icon to delete it.
To save your changes, in the top-right corner, click x to close the settings page, then in the top-right corner of the dashboard, click Save to save the dashboard and display the variable.
The Built-in variables section lists the following predefined variables that you can reference in dashboard queries, titles, and descriptions. Built-in variables are read-only and cannot be edited:
__from: Start time of the current time range in Unix milliseconds.
__to: End time of the current time range in Unix milliseconds.
__range: Current dashboard time range in human-readable format.
__range_s: Current dashboard time range in seconds.
__range_ms: Current dashboard time range in milliseconds.
__dashboard: Name of the current dashboard.
__interval: Automatically calculated step between range-query data points, expressed as a Prometheus duration.
__interval_ms: Automatically calculated step between range-query data points in milliseconds.
__rate_interval: Recommended range for rate() and increase() calculations, based on the query interval and minimum step.
To reference a custom or built-in variable, expand Variables usage. You can reference variables in dashboard queries, titles, and descriptions using $name or ${name}. Insights substitutes the variable’s value when the dashboard loads or the selected value changes.
For example, the following PromQL query uses a custom variable named droplet_urn to filter CPU utilization metrics:
For list variables that support multiple selections, the default format combines selected values into a regular expression group, such as (do:droplet:1|do:droplet:2).
To control how a variable’s values are inserted, append a format modifier using ${name:format}. For example, ${droplet_urn:csv} returns do:droplet:1,do:droplet:2.
The following format modifiers are available:
default: Inserts a single value as-is or multiple values as a regular expression group, such as (a|b).
csv: Inserts comma-separated values.
distributed: Repeats the variable name for each selected value.
doublequote: Inserts comma-separated values enclosed in double quotation marks.
glob: Inserts values as a glob set, such as {a,b,c}.
json: Inserts values as a JSON array.
lucene: Escapes values for Lucene queries or joins multiple values using OR.
To edit the dashboard’s schema, click the JSON tab. The schema contains the dashboard’s underlying configuration and supports advanced customization. The dashboard JSON schema defines the supported fields and lets you validate dashboard files before importing them.
Note
Only change fields you understand, and use the dashboard controls when an equivalent setting is available in the Control Panel.
For instructions on making specific changes in the JSON schema, see:
To save your changes, in the top-right corner, click x to close the settings page, then in the top-right corner of the dashboard, click Save to save the dashboard.
Edit a Dashboard Using Automation
You can edit dashboards using the DigitalOcean CLI or API to replace their definitions. An update replaces the stored definition in full, so retrieve the dashboard first and send its complete definition with your changes applied.
Edit a Dashboard via the CLI
To edit a dashboard, use the doctl insights dashboard update command with the dashboard UUID and the --spec-file flag set to the path of the complete updated definition. You can retrieve dashboard UUIDs using the doctl insights dashboard list command.
How to Edit a Dashboard Using the DigitalOcean CLI
To edit a dashboard, send a request to the Update a Dashboard endpoint with the dashboard UUID and the complete updated definition in the spec field. You can retrieve dashboard UUIDs using the List Dashboards endpoint.
How to Edit a Dashboard Using the DigitalOcean API
curl -X PUT \
-H "Content-Type: application/json"\
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN"\
-d '{"spec":"{\"kind\":\"Dashboard\",\"apiVersion\":\"perses.dev/v1alpha1\",\"spec\":{\"display\":{\"name\":\"Droplet CPU (production)\",\"description\":\"CPU utilization across production Droplets.\"},\"duration\":\"6h\",\"variables\":[],\"layouts\":[{\"kind\":\"Grid\",\"spec\":{\"items\":[{\"x\":0,\"y\":0,\"width\":12,\"height\":6,\"content\":{\"$ref\":\"#/spec/panels/cpu\"}}]}}],\"panels\":{\"cpu\":{\"kind\":\"Panel\",\"spec\":{\"display\":{\"name\":\"CPU utilization\"},\"plugin\":{\"kind\":\"TimeSeriesChart\",\"spec\":{}},\"queries\":[{\"kind\":\"TimeSeriesQuery\",\"spec\":{\"plugin\":{\"kind\":\"MetricsTimeSeriesQuery\",\"spec\":{\"metricName\":\"do.droplets.cpu_utilization\",\"kind\":\"gauge\",\"filters\":[],\"groupBy\":[]}}}}]}}}}}"}'\
"https://api.digitalocean.com/v2/insights/dashboards/7c9e6679-7425-40de-944b-e07fc1f90ae7"
Delete Dashboard
To delete a dashboard, find the dashboard you want to delete, on the right, click …, and then click Delete to open the Delete dashboard window.
Deleting a dashboard permanently removes the dashboard and all of its chart, group, variable, and layout configurations.
In the Dashboard name field, enter the dashboard name to confirm the deletion, then click Delete.
Delete a Dashboard Using Automation
You can delete dashboards using the DigitalOcean CLI or API to remove dashboards you no longer need.
Delete a Dashboard via the CLI
To delete a dashboard, use the doctl insights dashboard delete command with the dashboard UUID. You can retrieve dashboard UUIDs using the doctl insights dashboard list command.
How to Delete a Dashboard Using the DigitalOcean CLI
To delete a dashboard, send a request to the Delete a Dashboard endpoint with the dashboard UUID. You can retrieve dashboard UUIDs using the List Dashboards endpoint.
How to Delete a Dashboard Using the DigitalOcean API