> ## Documentation Index
> Fetch the complete documentation index at: https://docs-xcor.paloaltonetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Visualize data using dashboards

> Use dashboards to create and organize data visualizations in Palo Alto Networks Cortex XCOR.

Use dashboards to analyze your metrics by creating visualizations of query results
that you can customize, filter, and focus. You can use this to identify and act on
trends, correlate changes in data to incidents, and monitor real-time statuses.

> [!NOTE]
>
> Prefer a guided lab? Take
> [Building Dynamic Dashboards](https://docs-xcor.paloaltonetworks.com/academy/courses/building-dynamic-dashboards.md) to learn
> dashboard strategy, dynamic panels, and how to avoid common visualization pitfalls.

Palo Alto Networks Cortex XCOR provides two types of dashboards:

* Standard dashboards, documented on this page
* [Classic dashboards](https://docs-xcor.paloaltonetworks.com/observe/dashboards/classic-dashboards), based on Grafana

Standard dashboards are purpose-built for observability with Cortex XCOR,
and are the only dashboards with a commitment to ongoing development.

Dashboards are individual pages made up of [panels](https://docs-xcor.paloaltonetworks.com/observe/dashboards/panels).
These panels can be [different types](https://docs-xcor.paloaltonetworks.com/observe/dashboards/panels#panel-types),
depending on the data or text you want to visualize. Dashboards have many
customization options to help you focus on and group the information you need.

Cortex XCOR lists your [favorite](https://docs-xcor.paloaltonetworks.com/navigate/favorites.md) dashboards on your
personal home page and prioritizes them in global search results.

## View dashboards

Select from the following methods to view your available dashboards.

> [tab] Web
>
> To search for a dashboard from anywhere in Cortex XCOR:
>
> 1. Click the global search bar to focus on it, or use the keyboard shortcut
>    `Control+K` (`Command+K` on macOS).
> 2. Click the **Dashboards** filter.
> 3. Begin typing any part of the dashboard's name.
> 4. Click a dashboard listed in the search results to view it, or use the arrow keys
>    to select the result and press `Enter` (`Return` on macOS).
>
> To view all dashboards, in the navigation menu select **Dashboards**. This displays a
> table listing every dashboard in your organization.
>
> In the table's **Owner** column, the CollectionIcon collection icon indicates a
> dashboard is part of a [collection](https://docs-xcor.paloaltonetworks.com/administer/collections). The ServiceIcon
> service icon indicates a dashboard is part of a [service](https://docs-xcor.paloaltonetworks.com/observe/services).
>
> The table's **Type** column indicates whether the dashboard is a
> [classic](https://docs-xcor.paloaltonetworks.com/observe/dashboards/classic-dashboards) or standard dashboard.
>
> The table's **Source** column indicates which system manages each dashboard as a
> Cortex XCOR resource. The following table lists each source and what it means:
>
> | Source | Meaning |
> | - | - |
> | **Terraform** | Managed by your organization's [Terraform](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform) configuration. Dashboards managed with [Pulumi](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/pulumi.md) also list **Terraform**, because the Pulumi provider is built on the Terraform provider. |
> | **Chronoctl** | Managed with [Chronoctl](https://docs-xcor.paloaltonetworks.com/tooling/chronoctl). |
> | **UI** | Created in the Cortex XCOR app. |
> | **API** | Created by your organization's own code that calls the Cortex XCOR API, such as scripts, `curl` commands, and SDK clients. |
> | **Kubernetes operator** | Managed by a Kubernetes operator that your organization installs. |
> | **Prometheus sync** | Managed by a Prometheus sync that your organization runs. |
> | **XCOR** | Created and managed by Cortex XCOR, such as built-in dashboards. |
> | `--` | No recognized source is recorded, such as for dashboards created before Cortex XCOR recorded sources. |
>
> The source names the system that owns the dashboard, which is usually the system that
> created it. Editing a dashboard from a different system doesn't change its source,
> with one exception: Terraform, a Kubernetes operator, and a Prometheus sync take
> ownership of a dashboard when they update it. For example, if you edit a dashboard
> with a Chronoctl source in the app, the source stays Chronoctl. If a
> Terraform apply then changes the same dashboard, the source becomes Terraform.
>
> You must manage dashboards with a Terraform, Kubernetes operator, or
> Prometheus sync source through their source system. For Terraform, Cortex XCOR
> [blocks changes made with other tools](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform#prevent-changes-to-managed-resources).
> Use either the Cortex XCOR app or Chronoctl to manage dashboards with a UI or Chronoctl
> source.
>
> You can toggle the visibility of columns and pin selected columns to the left or
> right sides of the table by holding the pointer over the column and clicking
> the Settings icon column settings icon.
>
> You can also filter the table's contents to display only those with certain names
> or properties.
>
> * To filter the table's contents by name, enter part or all of a dashboard name
>   into the **Search dashboards Search icon** field.
> * To filter the table by team or owner, use the **Select a team** or
>   **Select an owner** dropdown. Select a name or enter part or all of one to filter
>   the dropdown options.
> * To filter the table by tag, click **Select a tag** and select its name from the
>   suggestion list, or enter part or all of a tag name into the field to filter the
>   list.
> * To filter the table to display only your favorite dashboards, click the
>   **View only my favorites** toggle.
> * **Include connected dashboards**: If you filter dashboards by owner while the
>   toggle is disabled, you'll only get dashboards owned by that owner. When the toggle
>   is enabled, your filter includes dashboards that are connected to that owner, even
>   if they aren't owned by that owner. Connections are based on
>   [collections](https://docs-xcor.paloaltonetworks.com/administer/collections/home.md).
>
> Cortex XCOR displays your favorite dashboards and those you have
> recently opened on your personal home page. On the dashboards list page, click
> **View recent** to view a list of your most recently visited dashboards and add
> them to your [favorites](https://docs-xcor.paloaltonetworks.com/navigate/favorites.md).

> [tab] Chronoctl
>
> To return a list of all dashboards with [Chronoctl](https://docs-xcor.paloaltonetworks.com/tooling/chronoctl), use the
> `chronoctl dashboards list` command:
>
> ```shell theme={null}
> chronoctl dashboards list
> ```
>
> You can list specific dashboards by name or slug by
> passing a comma-delimited list to the `--names` or `--slugs` flags, respectively. For
> example:
>
> ```shell theme={null}
> chronoctl dashboards list --names LIST
> ```
>
> Replace *`LIST`* with a comma-separated list of dashboard names as a string, such as
> `"Infra Dashboard,Frontend Dashboard"`.
>
> > [!NOTE]
> >
> > Dashboard resources returned by `list` don't contain the dashboard's JSON definitions
> > by default, but resources returned by `read` do. To include dashboard JSON with
> > `dashboards list`, add the `--include-dashboard-json` option to the command:
> >
> > ```shell theme={null}
> > chronoctl dashboards list --include-dashboard-json
> > ```
>
> To return a single dashboard, use the `chronoctl dashboards read` command:
>
> ```shell theme={null}
> chronoctl dashboards read SLUG
> ```
>
> Replace *`SLUG`* with the dashboard's slug.

> [tab] API
>
> To complete this action with the Cortex XCOR API, use the
> [`ListDashboards`](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ListDashboards) endpoint.
>
> Because the Cortex XCOR API requires authentication, include an API token with your
> `curl` request, as shown in the following example. For more details, see
> [Create an API token](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md#create-an-api-token).
>
> ```shell /"TOKEN"/ /INSTANCE/ /METHOD/ /ENDPOINT_PATH/ theme={null}
> export CHRONOSPHERE_API_TOKEN="TOKEN"
> export CHRONOSPHERE_DOMAIN="INSTANCE.chronosphere.io"
>
> curl -H "API-Token: ${CHRONOSPHERE_API_TOKEN}" \
>      -X METHOD "https://${CHRONOSPHERE_DOMAIN}/ENDPOINT_PATH"
> ```
>
> Replace the following:
>
> * *`TOKEN`*: Your API token.
> * *`INSTANCE`*: The subdomain name for your organization's Cortex XCOR instance.
> * *`METHOD`*: The HTTP method to use with the request, such as `GET` or `POST`.
> * *`ENDPOINT_PATH`*: The specific endpoint you want to access.

### View Cortex XCOR-managed dashboards

Cortex XCOR includes several dashboards to visualize information about
itself and its usage within your organization. For more information, see
[Cortex XCOR-managed dashboards](https://docs-xcor.paloaltonetworks.com/observe/dashboards/managed-dashboards.md).

## Create or import a dashboard

To add a dashboard, you can:

* [Create a new dashboard](#create-a-new-dashboard).
* [Duplicate an existing dashboard](#duplicate-a-dashboard).
* [Import a classic dashboard](#import-a-classic-dashboard).

### Create a new dashboard

Select from the following methods to create a new dashboard. You can create a
dashboard in the Cortex XCOR web interface, or define the
dashboard [in code](https://docs-xcor.paloaltonetworks.com/tooling/gitops.md#use-the-code-config-tool) and upload it. See the
[dashboard configuration schema](https://docs-xcor.paloaltonetworks.com/tooling/api-info/dashboard_schema.md)
for help defining fields in code.

> [tab] Web
>
> > [!NOTE]
> >
> > These steps apply only to standard dashboards. For classic dashboards, see
> > [Classic dashboards](https://docs-xcor.paloaltonetworks.com/observe/dashboards/classic-dashboards).
>
> To create a new dashboard:
>
> 1. In the navigation menu select \*\* Dashboards\*\*.
> 2. Click **+ Add**.
> 3. In the menu that appears, click **New dashboard** to open the **Add dashboard**
>    dialog.
> 4. Enter a descriptive name in the **Dashboard name** field.
> 5. Enter an **Owner** in the corresponding fields to associate the dashboard with
>    a [Collection](https://docs-xcor.paloaltonetworks.com/administer/collections) or [Service](https://docs-xcor.paloaltonetworks.com/observe/services).
> 6. Optional: Enter **Tags** in the corresponding field to associate the dashboard
>    with key-value tag pairs.
> 7. Click **Save**.
>
> You can also create a new dashboard from an
> [existing panel](https://docs-xcor.paloaltonetworks.com/observe/dashboards/panels#copy-a-panel-to-a-dashboard),
> [duplicate an existing dashboard](#duplicate-a-dashboard),
> [import a JSON file](#import-a-dashboard-with-json), or from the
> [**Recent dashboards** panel](https://docs-xcor.paloaltonetworks.com/observe/personal-homepage.md#recent-resources) on
> your personal home page. To add panels to a notebook instead, see
> [Add items to your notebook](https://docs-xcor.paloaltonetworks.com/navigate/notebooks.md#add-items-to-your-notebook).

> [tab] Chronoctl
>
> To create a new dashboard using [Chronoctl](https://docs-xcor.paloaltonetworks.com/tooling/chronoctl), configure it in a YAML
> resource definition and apply it.
>
> > [!NOTE]
> >
> > If you don't already have a YAML configuration file, use the
> > `chronoctl dashboards scaffold` command to generate a template for a specific
> > resource type:
> >
> > ```shell theme={null}
> > chronoctl dashboards scaffold
> > ```
> >
> > You can redirect the results (using the redirection operator `>`) to a file for
> > editing.
>
> To create a new dashboard as code:
>
> 1. Configure the dashboard by editing the resource's properties. Remove any properties
>    you don't want to configure.
>
>    Define the dashboard within the YAML resource as a block of JSON. You can retrieve
>    the JSON of an existing dashboard from Cortex XCOR by navigating to
>    the dashboard and clicking the \*\* Download JSON\*\*
>    button.
>
>    For example, this resource creates an empty dashboard with the name `Infra Dashboard`
>    and slug `infra-dashboard`:
>
>    ```yaml Chronoctl example icon="square-terminal" theme={null}
>    api_version: v1/config
>    kind: Dashboard
>    spec:
>      # Unique identifier of the Dashboard. If slug is not provided, one will be
>      # generated based of the name field. Cannot be modified after the Dashboard
>      # is created.
>      slug: "infra-dashboard"
>      # Required name of the Dashboard. May be modified after the Dashboard is created.
>      name: "Infra Dashboard"
>      # Required raw JSON of the dashboard.
>      dashboard_json: >
>        {
>          "kind": "Dashboard",
>          "metadata": {
>            "name": "Infra dashboard"
>          },
>          "spec": {
>            "events": [],
>            "panels": {},
>            "layouts": [],
>            "variables": [],
>            "duration": "30m"
>          }
>        }
>      # Required collection associated with this dashboard.
>      collection_slug: "infra-collection"
>    ```
>
> 2. Apply the changes:
>
>    ```shell theme={null}
>    chronoctl apply -f FILE_NAME.yaml
>    ```
>
>    Replace *`FILE_NAME`* with the name of your dashboard YAML file.

> [tab] Terraform
>
> To create a standard dashboard with the
> [Terraform provider](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform), define a
> `chronosphere_dashboard` resource. The dashboard's panels, layouts, and variables are
> defined as JSON in the resource's `dashboard_json` field, based on the
> [dashboard configuration schema](https://docs-xcor.paloaltonetworks.com/tooling/api-info/dashboard_schema.md).
>
> > [!NOTE]
> >
> > You need Terraform installed and configured. Read the
> > [Terraform documentation](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform) for more details.
>
> Because the `dashboard_json` payload is large and complex, the most reliable way to
> create a dashboard is to start from an existing dashboard that already works, and
> then edit its exported configuration. To do this:
>
> 1. In Cortex XCOR, open a dashboard whose layout resembles the one you want
>    to create. Exporting a dashboard is read-only and doesn't modify it, so you can
>    safely export any existing dashboard as a starting point.
>
> 2. Open the dashboard's Code config tool: click
>    \*\* More actions\*\*, then click
>    [**Code config**](https://docs-xcor.paloaltonetworks.com/tooling/gitops.md#use-the-code-config-tool).
>
> 3. Select **Terraform** to export the dashboard's configuration. This produces a
>    complete `chronosphere_dashboard` resource with a valid `dashboard_json` payload.
>    For more information, see [Export a dashboard](#export-a-dashboard).
>
> 4. Copy the resource into a Terraform file.
>
> 5. Change the resource label and the `name` and `slug` arguments to create a new
>    dashboard instead of modifying the original, and then edit the `dashboard_json`
>    payload to define your changes:
>
>    ```terraform Terraform example icon="square-terminal" theme={null}
>    resource "chronosphere_dashboard" "platform_overview" {
>      name          = "Platform Overview"
>      slug          = "platform-overview"
>      collection_id = chronosphere_collection.platform.id
>
>      # Exported from Cortex XCOR. Edit the panels, layouts, and
>      # variables here to define your dashboard.
>      dashboard_json = jsonencode({
>        # ...full dashboard definition from the export...
>      })
>    }
>    ```
>
> 6. Set the fields relevant to your dashboard. For the complete, version-accurate field
>    reference, see the
>    [provider registry documentation](https://registry.terraform.io/providers/chronosphereio/chronosphere/latest/docs/resources/dashboard).
>    The fields most relevant to this workflow are:
>
>    * `dashboard_json` (Required): The JSON definition of the dashboard's panels,
>      layouts, and variables. Wrap the definition in `jsonencode({...})`. The provider
>      normalizes this JSON before comparing it, so differences in key order or
>      whitespace don't produce spurious changes in a plan.
>    * `collection_id` (Optional): The ID of the [collection](https://docs-xcor.paloaltonetworks.com/administer/collections)
>      or [service](https://docs-xcor.paloaltonetworks.com/observe/services) that owns the dashboard. This can be a literal ID
>      or a reference to a `chronosphere_collection` resource, as in the example.
>    * `slug` (Optional): A stable, unique identifier for the dashboard. If you omit
>      this field, Cortex XCOR generates a slug from `name`. The slug must be unique:
>      applying a resource whose slug matches an existing dashboard fails with a
>      conflict error. The slug is also immutable. Changing it after creation forces
>      Terraform to destroy and recreate the dashboard, which deletes the original
>      dashboard along with its version history and connections.
>
>    For dashboards with many panels, keep the exported JSON in a separate file and
>    reference it with the Terraform
>    [`file`](https://developer.hashicorp.com/terraform/language/functions/file)
>    function rather than adding it inline:
>
>    ```terraform Terraform example icon="square-terminal" theme={null}
>    resource "chronosphere_dashboard" "platform_overview" {
>      name           = "Platform Overview"
>      slug           = "platform-overview"
>      collection_id  = chronosphere_collection.platform.id
>      dashboard_json = file("${path.module}/platform-overview.json")
>    }
>    ```
>
> 7. Apply the changes:
>
>    ```shell theme={null}
>    terraform apply
>    ```
>
> > [!NOTE]
> >
> > Users can modify Terraform-managed resources only by using Terraform.
> > [Learn more](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform#prevent-changes-to-managed-resources).

> [tab] API
>
> To complete this action with the Cortex XCOR API, use the
> [`CreateDashboard`](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/CreateDashboard) endpoint.
>
> Because the Cortex XCOR API requires authentication, include an API token with your
> `curl` request, as shown in the following example. For more details, see
> [Create an API token](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md#create-an-api-token).
>
> ```shell /"TOKEN"/ /INSTANCE/ /METHOD/ /ENDPOINT_PATH/ theme={null}
> export CHRONOSPHERE_API_TOKEN="TOKEN"
> export CHRONOSPHERE_DOMAIN="INSTANCE.chronosphere.io"
>
> curl -H "API-Token: ${CHRONOSPHERE_API_TOKEN}" \
>      -X METHOD "https://${CHRONOSPHERE_DOMAIN}/ENDPOINT_PATH"
> ```
>
> Replace the following:
>
> * *`TOKEN`*: Your API token.
> * *`INSTANCE`*: The subdomain name for your organization's Cortex XCOR instance.
> * *`METHOD`*: The HTTP method to use with the request, such as `GET` or `POST`.
> * *`ENDPOINT_PATH`*: The specific endpoint you want to access.

After creating a dashboard, you can populate it with
[panels](https://docs-xcor.paloaltonetworks.com/observe/dashboards/panels), add and edit
[dashboard variables](https://docs-xcor.paloaltonetworks.com/observe/dashboards/customization/dashboard-variables.md) and
events, and configure its [layouts](https://docs-xcor.paloaltonetworks.com/observe/dashboards/customization/layouts.md). You
can also associate Services to dashboards by using either Chronoctl or Terraform.

To populate a new dashboard by describing what you want in plain language, see
[Edit a dashboard with Operator](#edit-a-dashboard-with-operator).

### Duplicate a dashboard

You can duplicate dashboards, including in Cortex XCOR, and then customize
the duplicate. Cortex XCOR-managed dashboards can be duplicated but not deleted.

1. In the **Dashboards** page, click the  three
   vertical dots icon and then click **Duplicate**.

   Alternately, when viewing a dashboard, click
   ** More actions**
   \> **Duplicate dashboard**.
2. Enter the following information:
   * **Dashboard name**: A name for the new dashboard.
   * **Owner**: The service or collection that owns this dashboard.
   * Optional: Select tags for the dashboard.
3. Click **Save**.

Your duplicated dashboard opens and is ready to edit.

### Import a dashboard with JSON

Cortex XCOR lets you upload one or more dashboards as JSON files.
To do so:

1. In the navigation menu select ** Dashboards**.
2. Click **+ Add**.
3. In the menu, click **Import dashboard** to open the **Import Dashboards** dialog.
4. Click **Import or Drag and Drop dashboard JSON File** to upload one or more exported
   dashboard JSON files, or drag and drop a dashboard JSON into the
   **Import Dashboard JSON** field.

   If the file fails validation, the dialog displays an error message that
   describes the failure.

   There is one entry for each uploaded file.
5. In the **Upload Settings** section, select an **Owner** for the dashboard to
   associate the dashboard with a [collection](https://docs-xcor.paloaltonetworks.com/administer/collections) or
   [service](https://docs-xcor.paloaltonetworks.com/observe/services).
6. Optional: Add a **Tag**.
7. Optional: Enter a descriptive name in the **Name** field. The field default is
   the import file's name.
8. Optional: Enter **Tags** in the corresponding field to associate the dashboard
   with key-value tag pairs.
9. Click **Import Dashboards** to import the dashboard.

When complete, the dialog displays a `Dashboard uploaded` success message.

#### Import a classic dashboard

You can [import a Grafana dashboard as a classic dashboard](https://docs-xcor.paloaltonetworks.com/observe/dashboards/classic-dashboards/grafana-import.md)
with Chronoctl or Terraform. To convert an existing classic dashboard into a standard
dashboard instead, see
[Migrate to standard dashboards](https://docs-xcor.paloaltonetworks.com/observe/dashboards/classic-dashboards/migrate-to-standard.md).

## Summarize your dashboard

> [!NOTE]
>
> This feature isn't available to all Palo Alto Networks Cortex XCOR users and
> might not be visible in your app. For information about enabling this feature in your
> environment, contact [Cortex XCOR Support](https://docs-xcor.paloaltonetworks.com/support.md).

**Dashboard descriptions** use
[generative artificial intelligence (AI) tools](https://docs-xcor.paloaltonetworks.com/overview/generative-ai.md)
to summarize a dashboard by its features and purpose.

A dashboard description includes the following:

* **Overview**: A high-level summary of the dashboard's purpose, the data it visualizes,
  and its potential uses.
* **Key Panel Groups**: A list of summaries for each panel group in the dashboard.
* **Variables**: A list of summaries for each variable in the dashboard.

To view a dashboard's description, click the

**AI Summary** icon.
Cortex XCOR displays the description in a pop-up.

To provide feedback on the description, click the ** accept**
or ** reject** buttons at the end of the description.

## Edit a dashboard with Operator

> [!NOTE]
>
> This feature is in Early Access (EA), and might not be visible in your app. To learn
> more about this program and the features it contains, see the
> [Early access](https://docs-xcor.paloaltonetworks.com/early-access.md) page.

[Operator](https://docs-xcor.paloaltonetworks.com/navigate/operator) reads the dashboard you have open, including
unsaved edits, and changes it when you ask. Use it to add a panel, adjust a query,
or restructure a dashboard without editing its JSON directly.

To edit a dashboard with Operator:

1. Open the dashboard you want to change.
2. Click ** Ask Operator** in the page header, or press
   <kbd>A</kbd>.
3. Describe the change you want. For example:

   Add a panel showing request rate by status code for the checkout service.

   Add a panel showing request rate by status code for the checkout service.

Operator validates its change against the dashboard schema before applying it.
When the change is valid, the dashboard switches to edit mode so you can review it.
The change also appears in the dashboard's edit history as
**Edited dashboard with Operator**, so you can
[undo](https://docs-xcor.paloaltonetworks.com/observe/dashboards/panels#undo-the-previous-action) it like a manual edit.
Changes aren't committed to the dashboard until you click **Save**.

When validation fails, Operator reports the problem and leaves the dashboard
unchanged.

For more information, see
[Operator capabilities](https://docs-xcor.paloaltonetworks.com/navigate/operator/capabilities.md#edit-the-open-dashboard).

> [!WARNING]
>
> Generative AI features can produce incorrect results, hallucinate data, and deliver
> inaccurate analysis. Use generative AI features with care, and independently verify
> all information produced by generative AI tools before applying it.
>
> Certain prompts, data, or other inputs might produce irrelevant content. Don't rely on
> generative AI features or responses for any uses that exceed their designed scope.

## Edit your dashboard settings

> [!NOTE]
>
> Users can modify Terraform-managed resources only by using Terraform.
> [Learn more](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform#prevent-changes-to-managed-resources).

All dashboards have common settings and tools. Click
**Settings icon Settings** to open the dashboard
settings, or open the ** More actions** menu for
additional tools.

These steps apply only to standard dashboards. For classic dashboards, see
[Classic dashboards](https://docs-xcor.paloaltonetworks.com/observe/dashboards/classic-dashboards).

### Rename a dashboard

Select from the following methods to rename a dashboard.

> [tab] Web
>
> To rename a dashboard:
>
> 1. Select the dashboard you want to rename.
> 2. Click **Settings icon Settings**.
> 3. Enter a new name in the **Dashboard name** field.
> 4. Click **Apply**, and then click **Save** on the dashboard itself to save the
>    change.

> [tab] Chronoctl
>
> To rename a dashboard with [Chronoctl](https://docs-xcor.paloaltonetworks.com/tooling/chronoctl):
>
> 1. Retrieve the current definition with `chronoctl dashboards read SLUG`.
> 2. Update the `name` field in the YAML resource definition.
> 3. Apply the changes:
>
>    ```shell theme={null}
>    chronoctl apply -f FILE_NAME.yaml
>    ```
>
>    Replace *`FILE_NAME`* with the name of your dashboard YAML file.

> [tab] Terraform
>
> To rename a dashboard with [Terraform](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform), update the
> `name` field in the `chronosphere_dashboard` resource, and then apply the changes:
>
> ```shell theme={null}
> terraform apply
> ```
>
> If the dashboard was created outside Terraform, first import it with
> `terraform import chronosphere_dashboard.NAME SLUG`, where *`NAME`* is the resource
> label and *`SLUG`* is the dashboard's slug. Otherwise, Terraform tries to create a new
> dashboard and fails with a conflict error.

> [tab] API
>
> To complete this action with the Cortex XCOR API, use the
> [`UpdateDashboard`](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/UpdateDashboard) endpoint and
> update the `name` key of the `dashboard` object.
>
> Because the Cortex XCOR API requires authentication, include an API token with your
> `curl` request, as shown in the following example. For more details, see
> [Create an API token](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md#create-an-api-token).
>
> ```shell /"TOKEN"/ /INSTANCE/ /METHOD/ /ENDPOINT_PATH/ theme={null}
> export CHRONOSPHERE_API_TOKEN="TOKEN"
> export CHRONOSPHERE_DOMAIN="INSTANCE.chronosphere.io"
>
> curl -H "API-Token: ${CHRONOSPHERE_API_TOKEN}" \
>      -X METHOD "https://${CHRONOSPHERE_DOMAIN}/ENDPOINT_PATH"
> ```
>
> Replace the following:
>
> * *`TOKEN`*: Your API token.
> * *`INSTANCE`*: The subdomain name for your organization's Cortex XCOR instance.
> * *`METHOD`*: The HTTP method to use with the request, such as `GET` or `POST`.
> * *`ENDPOINT_PATH`*: The specific endpoint you want to access.

### Reassign a dashboard's owner

Select from the following methods to reassign a dashboard to a different
[collection](https://docs-xcor.paloaltonetworks.com/administer/collections) or [service](https://docs-xcor.paloaltonetworks.com/observe/services).

> [tab] Web
>
> To reassign a dashboard:
>
> 1. Select the dashboard you want to reassign.
> 2. Click **Settings icon Settings**.
> 3. Click the **Owner** dropdown.
> 4. Scroll through the list and click the collection or service to which you want to assign
>    the dashboard. To filter the list by owner name, begin typing a name into
>    the dropdown field.
> 5. Click **Apply**, and then click **Save** on the dashboard itself to save the
>    change.

> [tab] Chronoctl
>
> To reassign a dashboard with [Chronoctl](https://docs-xcor.paloaltonetworks.com/tooling/chronoctl):
>
> 1. Retrieve the current definition with `chronoctl dashboards read SLUG`.
> 2. Update the `collection_slug` field in the YAML resource definition.
> 3. Apply the changes:
>
>    ```shell theme={null}
>    chronoctl apply -f dashboard.yaml
>    ```

> [tab] Terraform
>
> To reassign a dashboard with [Terraform](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform), update
> the `collection_id` field in the `chronosphere_dashboard` resource, and then apply the
> changes:
>
> ```shell theme={null}
> terraform apply
> ```
>
> If the dashboard was created outside Terraform, first import it with
> `terraform import chronosphere_dashboard.NAME SLUG`, where *`NAME`* is the resource
> label and *`SLUG`* is the dashboard's slug. Otherwise, Terraform tries to create a new
> dashboard and fails with a conflict error.

> [tab] API
>
> To complete this action with the Cortex XCOR API, use the
> [`UpdateDashboard`](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/UpdateDashboard) endpoint and
> update the `collection` key of the `dashboard` object.
>
> Because the Cortex XCOR API requires authentication, include an API token with your
> `curl` request, as shown in the following example. For more details, see
> [Create an API token](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md#create-an-api-token).
>
> ```shell /"TOKEN"/ /INSTANCE/ /METHOD/ /ENDPOINT_PATH/ theme={null}
> export CHRONOSPHERE_API_TOKEN="TOKEN"
> export CHRONOSPHERE_DOMAIN="INSTANCE.chronosphere.io"
>
> curl -H "API-Token: ${CHRONOSPHERE_API_TOKEN}" \
>      -X METHOD "https://${CHRONOSPHERE_DOMAIN}/ENDPOINT_PATH"
> ```
>
> Replace the following:
>
> * *`TOKEN`*: Your API token.
> * *`INSTANCE`*: The subdomain name for your organization's Cortex XCOR instance.
> * *`METHOD`*: The HTTP method to use with the request, such as `GET` or `POST`.
> * *`ENDPOINT_PATH`*: The specific endpoint you want to access.

### Create and configure dashboard variables

*Dashboard variables* let users dynamically redefine parts of panel queries and
other features by selecting values from a dropdown or entering them into a field.

For details about creating and configuring dashboard variables, see
[Customize panel queries with dashboard variables](https://docs-xcor.paloaltonetworks.com/observe/dashboards/customization/dashboard-variables.md).

To reuse label and value selections from supported pages as list variable values
on a dashboard, see [Quick filters](https://docs-xcor.paloaltonetworks.com/navigate/quick-filters.md).

### Add events to a dashboard

For information about adding events to a dashboard while viewing it, see
[Enable change events on dashboards](https://docs-xcor.paloaltonetworks.com/observe/enable-events/dashboards.md#standard-dashboards).

### Review the version history

To view the history of changes made to a dashboard:

1. Select a dashboard.
2. Click ** More actions**.

Click **Version history** to display a panel with two tabs:

* [**Code config**](https://docs-xcor.paloaltonetworks.com/tooling/gitops.md#use-the-code-config-tool): Displays a code
  representation of the selected entity as of the time of the selected revision.
* **Code diff**: Displays a Git-style diff of the most-recent change made to the
  entity, in Cortex XCOR API format. To compare the selected revision to another
  revision in the history, click the **Compare With** dropdown and select the
  timestamp of the revision that you want to compare.
  * Click **Unified** to see the diff stacked horizontally.
  * Click **Split** to see changes side by side.

You can see the user, service account, or
[actor](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md#change-actors) which made and the method used for the
last change at the top of the list of changes.

To view a revision in the history, click any entry in the list of timestamped
revisions. The timestamps default to your local time zone.

You can view unchanged lines within the diff by clicking the **Expand X lines**
links.

For a natural language description of the differences between versions, click
**Explain what has changed**. An information box appears with a summary of the
changes. This summary can help users who are less familiar with code updates
understand changes. Use the **thumbs up** or **thumbs down** icon
to indicate whether the explanation was helpful or not.

> [!NOTE]
>
> The Version History view retains up to 500 revisions, or up to 15 months of revisions
> if there are fewer than 500 revisions.

#### Restore a previous version

When reviewing the version history, you can restore a prior version.

1. Select the version to revert to.
2. Click **Restore to *`DATE`***, where *`DATE`* is the selected version.
3. Click **Restore**.

The dashboard refreshes and displays the restored version.

### Connect a dashboard to a service

Services and collections can own dashboards, but you can also connect a dashboard to a service
that doesn't own it. You might have dashboards where different groups have
responsibility for handling issues, but the information is important to other groups.

To connect a dashboard to a service:

1. Select a dashboard.
2. Click ** More actions**.
3. Click **Connections**.
4. Add or remove a [connection](https://docs-xcor.paloaltonetworks.com/observe/services/extending-services.md#view-connected-resources).

### Make your dashboard full screen

Observability teams often use full screen displays for operational dashboards,
without menu bars cluttering the workspace. Cortex XCOR makes this
feature available as **Kiosk mode**.

To display Cortex XCOR in kiosk mode:

1. Select a dashboard.
2. Change any [**Compare**](https://docs-xcor.paloaltonetworks.com/navigate/time-ranges.md#compare-current-data-to-past-data)
   or time period settings.
3. Click ** More actions**.
4. Click **Kiosk mode**.

The dashboard expands to display in the full screen. Edit functions aren't available
when in kiosk mode. You can however refresh the dashboard, or move forward and
backwards in the defined time period.

To exit kiosk mode, click `Esc`.

## Export a dashboard

Export your dashboard for use by your GitOps or infrastructure as code tools.

To view or download the full dashboard's code in Chronoctl, Terraform,
or API format:

1. Select a dashboard.
2. Click ** More actions**.
3. Click [**Code config**](https://docs-xcor.paloaltonetworks.com/tooling/gitops.md#use-the-code-config-tool).

To export a dashboard's JSON configuration:

1. In the dashboard, click ** More actions**.
2. From the menu, select **JSON**. The **JSON** side panel opens.
3. Click ** Copy** to copy the JSON to your clipboard,
   or click **** to download the JSON.

You can also manually update the JSON, and then click **Apply** to change the
dashboard.

To view or export JSON for a specific panel, [view a panel's JSON](https://docs-xcor.paloaltonetworks.com/observe/dashboards/panels#view-a-panels-json).

## Delete a dashboard

Select from the following methods to delete a dashboard.

> [!NOTE]
>
> Users can modify Terraform-managed resources only by using Terraform.
> [Learn more](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform#prevent-changes-to-managed-resources).

> [tab] Web
>
> > [!NOTE]
> >
> > These steps apply only to standard dashboards. For classic dashboards, see
> > [Classic dashboards](https://docs-xcor.paloaltonetworks.com/observe/dashboards/classic-dashboards).
>
> To delete a dashboard while viewing it:
>
> 1. Click **Settings icon Settings**.
> 2. Click **Delete dashboard**.
> 3. In the **Delete dashboard** dialog, click **Delete** to confirm the deletion.
>
> ### Delete from the Dashboards table
>
> 1. Hold the pointer over a dashboard's row.
> 2. Click its settings icon.
> 3. Click **Delete**.
> 4. In the **Delete dashboard** dialog, click **Delete** to confirm the deletion.

> [tab] Chronoctl
>
> To delete a dashboard with [Chronoctl](https://docs-xcor.paloaltonetworks.com/tooling/chronoctl), use the
> `chronoctl dashboards delete` command:
>
> ```shell theme={null}
> chronoctl dashboards delete SLUG
> ```
>
> Replace *`SLUG`* with the unique slug identifier for the dashboard you want to
> delete.

> [tab] Terraform
>
> To delete a dashboard using [Terraform](https://docs-xcor.paloaltonetworks.com/tooling/infrastructure/terraform):
>
> 1. Remove the dashboard definition from the Terraform file.
> 2. Run this command to apply the changes:
>
>    ```shell theme={null}
>    terraform apply
>    ```

> [tab] API
>
> To complete this action with the Cortex XCOR API, use the
> [`DeleteDashboard`](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/DeleteDashboard) endpoint.
>
> Because the Cortex XCOR API requires authentication, include an API token with your
> `curl` request, as shown in the following example. For more details, see
> [Create an API token](https://docs-xcor.paloaltonetworks.com/tooling/api-info.md#create-an-api-token).
>
> ```shell /"TOKEN"/ /INSTANCE/ /METHOD/ /ENDPOINT_PATH/ theme={null}
> export CHRONOSPHERE_API_TOKEN="TOKEN"
> export CHRONOSPHERE_DOMAIN="INSTANCE.chronosphere.io"
>
> curl -H "API-Token: ${CHRONOSPHERE_API_TOKEN}" \
>      -X METHOD "https://${CHRONOSPHERE_DOMAIN}/ENDPOINT_PATH"
> ```
>
> Replace the following:
>
> * *`TOKEN`*: Your API token.
> * *`INSTANCE`*: The subdomain name for your organization's Cortex XCOR instance.
> * *`METHOD`*: The HTTP method to use with the request, such as `GET` or `POST`.
> * *`ENDPOINT_PATH`*: The specific endpoint you want to access.

## Modify a dashboard's layout

Dashboard *layouts* help you organize related [panels](https://docs-xcor.paloaltonetworks.com/observe/dashboards/panels)
into panel groups.

For more information, see
[Organize dashboard content with layouts](https://docs-xcor.paloaltonetworks.com/observe/dashboards/customization/layouts.md).

## View and compare specific time ranges

*Comparison mode*, sometimes called week-over-week (WoW) view, helps you overlay
historical data on your current data in dashboards. This provides additional context
for comparing your current metrics with historical trends and expectations, or
identifying recurring trends and outliers.

For details about using comparison mode, see
[compare current data to past data](https://docs-xcor.paloaltonetworks.com/navigate/time-ranges.md#compare-current-data-to-past-data).

## Query Accelerator

To help reduce the impact of slow queries on Dashboard performance, Cortex XCOR
automatically optimizes queries. The optimization process detects slow
aggregation queries in dashboard panels, creates pre-aggregated time series to
reflect those rollups, and replaces the slow results with the optimized results at
query time.


## Related topics

- [Building Dynamic Dashboards](https://docs-xcor.paloaltonetworks.com/academy/courses/building-dynamic-dashboards.md)
- [Visualize dashboard contents with panels](https://docs-xcor.paloaltonetworks.com/observe/dashboards/classic-dashboards/classic-panels.md)
- [Visualize proportional data with pie charts](https://docs-xcor.paloaltonetworks.com/observe/dashboards/panels/pie-chart.md)
- [Visualize relative data with bar charts](https://docs-xcor.paloaltonetworks.com/observe/dashboards/panels/bar-chart.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.