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

# Create dashboards from queries

export const AddToDashboardIcon = props => {
  return <svg viewBox="0 0 20 20" className="inline-block h-5 w-5 fill-current" {...props}>
      <path fillRule="evenodd" clipRule="evenodd" d="M3 3H9V9H3V3ZM11 3H17V9H11V3ZM3 11H9V17H3V11ZM13.25 11H14.75V13.25H17V14.75H14.75V17H13.25V14.75H11V13.25H13.25V11ZM12.5 4.5V7.5H15.5V4.5H12.5ZM4.5 4.5V7.5H7.5V4.5H4.5ZM4.5 12.5V15.5H7.5V12.5H4.5Z" />
    </svg>;
};

Chronosphere Observability Platform supports creating dashboards from queries for
certain telemetry data types. You can add queries to a new dashboard or an existing
dashboard to visualize the query results.

Complete the following steps to create a [dashboard](/observe/dashboards) with a
query:

1. In the navigation menu select one of the Explorers that support adding queries to
   a dashboard:

   * **Logs**: **<Icon icon="compass" /> Explorers <span aria-label="and then">></span> Logs
     Explorer**.
   * **Metrics**: **<Icon icon="compass" /> Explorers <span aria-label="and then">></span> Metrics
     Explorer**.

2. Construct a query that returns the data you want to view:

   * **Logs**: Construct a query for [log data](/investigate/querying/query-logs).
   * **Metrics**: Construct a query for [metric data](/investigate/querying/metrics/explorer#enter-and-run-a-query).
     Use the [Query Builder](/investigate/querying/metrics/builder) to help build and
     optimize your query.

3. In the main navigation bar, click **<AddToDashboardIcon /> Add to Dashboard**.

4. In the **Add to dashboard** dialog, enter a name for your query. The query you
   defined is entered in the **Name** field by default.

5. Click **Select dashboard** to add the panel to an existing dashboard, or click
   **create a new dashboard** to create a new dashboard containing the panel.

   Observability Platform previews the addition of the panel to the dashboard.

   * For an existing dashboard, click the **Panel group** dropdown to add the panel
     to an existing panel group, or select **New Panel Group** from the dropdown to
     add it to a new group.
   * For a new dashboard, click the **Dashboard name** field to name the dashboard,
     and click the **Owner** dropdown to choose which Collection owns the dashboard.

6. Click **Add to dashboard** to add the panel to your dashboard.

Observability Platform creates the dashboard with the query you defined or adds the
query to the specified dashboard. You can
[change the panel's type](/observe/dashboards/panels#change-a-panels-type) if you
want the query to display as a different visualization.
