Redaguoti

Bendrinti naudojant


Create a dashboard in Azure Managed Grafana

In this guide, learn how to create a dashboard in Azure Managed Grafana to visualize data from your Azure services.

A Grafana dashboard contains panels and rows. You can import a Grafana dashboard and adapt it to your own scenario, create a new Grafana dashboard, or duplicate an existing dashboard.

Note

The Grafana UI may change periodically. This article shows the Grafana interface and user flow at a given point. Your experience may slightly differ from the examples below at the time of reading this document. If this is the case, refer to the Grafana Labs documentation.

Prerequisites

Import a Grafana dashboard

To quickly create a dashboard, import an existing dashboard and add it to your Managed Grafana instance. You can do so by importing a dashboard template from Grafana Labs, uploading a JSON file or pasting JSON code.

Import a dashboard from Grafana Labs

Import a dashboard template from the Grafana Labs website.

  1. From the Grafana Labs website, browse through Grafana dashboards templates and select a dashboard to import.

  2. Select Copy ID to clipboard.

  3. For the next steps, use the Azure portal or the Azure CLI.

    1. In the Azure portal, open your Azure Managed Grafana workspace and select the Endpoint URL.

    2. In the Grafana portal, go to Dashboards > Import.

    3. Under Import via grafana.com, paste the Grafana dashboard ID copied earlier, and select Load.

      Screenshot of the Grafana instance. Load dashboard to import.

    4. Optionally update the dashboard name, folder, unique identifier (UID), and other parameters.

    5. Select a datasource and select Import.

    6. A new dashboard is displayed. Review and edit it if necessary.

Import a JSON dashboard

Follow these steps to import a JSON dashboard to Grafana:

  1. In the Azure portal, open your Azure Managed Grafana workspace and select the Endpoint URL.
  2. Go to Dashboard > Import use a preferred import option:
    • Select Upload JSON file and then Load to import from a JSON file.
    • Paste JSON text in the Import via panel json box and select Load to use text from your clipboard.
  3. Optionally update the dashboard name, folder, unique identifier (UID) and other parameters.
  4. Select Import.

Create a new Grafana dashboard

To create your own new dashboard, follow these steps.

  1. In the Azure portal, open your Azure Managed Grafana workspace and select the Endpoint URL.

  2. In the Grafana portal, go to Dashboards > New Dashboard.

  3. Select one of the following options:

    • Add a new panel: instantly creates a dashboard from scratch with a first default panel.
    • Add a new row: instantly creates a dashboard with a new empty row.
    • Add a panel from the panel library: instantly creates a dashboard with an existing reusable panel from another instance you have access to.

    Screenshot of the Grafana instance. Create a new dashboard.

Duplicate a Grafana dashboard

Duplicate a Grafana dashboard using your preferred method.

To copy a Grafana dashboard:

  1. Open an existing dashboard in your Grafana instance.

  2. Select Dashboard settings.

  3. Select Save as.

  4. Enter a new name and/or a new folder and select Save.

    Screenshot of the Grafana instance. Duplicate a dashboard.

Edit a dashboard panel

Edit a Grafana dashboard panel using your preferred method.

To update a Grafana panel, follow the steps below.

  1. Review the panel to check if you're satisfied with it or want to make some edits.

    Screenshot of the Grafana instance. Example of visualization.

  2. In the lower part of the page:

    1. Query tab:
      1. Review the selected data source. If necessary, select the drop-down list to use another data source.
      2. Update the query. Each data source has a specific query editor that provides different features and capabilities for that type of data source.
      3. Select + Query or + Expression to add a new query or expression.

    Screenshot of the Grafana instance. Queries.

    1. Transform tab: filter data or queries, and organize or combine data before the data is visualized.
    2. Alert tab: set alert rules and notifications.
  3. At the top of the page:

    1. Toggle Table view to display data as a table.
    2. Switch between Fill and Actual to edit panel size.
    3. Select the time icon to update the time range.
    4. Select the visualization drop-down menu to choose a visualization type that best supports your use case. Go to visualization for more information.

    Screenshot of the Grafana instance. Time, visualization and more options.

  4. On the right hand side, select the Panel options icon to review and update various panel options.

Next steps

In this how-to guide, you learned how to create a Grafana dashboard. To learn share this dashboard with internal and external stakeholders, go to: