|
| 1 | +--- |
| 2 | +title: Create a Grafana dashboard with Azure Managed Grafana |
| 3 | +description: Learn how to create and set up Azure Managed Grafana dashboards. |
| 4 | +author: maud-lv |
| 5 | +ms.author: malev |
| 6 | +ms.service: managed-grafana |
| 7 | +ms.topic: how-to |
| 8 | +ms.date: 12/20/2022 |
| 9 | +--- |
| 10 | + |
| 11 | +# Create a dashboard in Azure Managed Grafana |
| 12 | + |
| 13 | +In this guide, learn how to create a dashboard in Azure Managed Grafana to visualize data from your Azure services. |
| 14 | + |
| 15 | +## Prerequisites |
| 16 | + |
| 17 | +- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free). |
| 18 | +- An Azure Managed Grafana instance. If you don't have one yet, [create an Azure Managed Grafana instance](./quickstart-managed-grafana-portal.md). |
| 19 | +- An existing Azure service instance with monitoring data. |
| 20 | + |
| 21 | +## Import a Grafana dashboard |
| 22 | + |
| 23 | +To quickly create a dashboard, import a dashboard template from the Grafana Labs website and add it to your Managed Grafana workspace. |
| 24 | + |
| 25 | +1. From the Grafana Labs website, browse through [Grafana dashboards templates](https://grafana.com/grafana/dashboards/?category=azure) and select a dashboard to import. |
| 26 | +1. Select **Copy ID to clipboard**. |
| 27 | +1. In the Azure portal, open your Azure Managed Grafana workspace and select the **Endpoint** URL. |
| 28 | +1. In your Grafana endpoint, go to **Dashboards > Import**. |
| 29 | +1. On the **Import** page, under **Import via grafana.com**, paste the Grafana dashboard ID copied earlier, and select **Load**. |
| 30 | + :::image type="content" source="media/dashboard/import-load.png" alt-text="Screenshot of the Grafana instance. Load dashboard to import."::: |
| 31 | + |
| 32 | +1. Optionally update the dashboard name, folder and UID. |
| 33 | +1. Select a datasource and select **Import**. |
| 34 | +1. A new dashboard is displayed. |
| 35 | +1. Review the default visualizations on the dashboard and edit the dashboard if necessary. |
| 36 | + |
| 37 | +## Create a new Grafana dashboard from scratch |
| 38 | + |
| 39 | +If none of the pre-configured dashboards listed on the Grafana Labs website fit your needs, create a new dashboard from scratch. |
| 40 | + |
| 41 | +1. In the Azure portal, open your Azure Managed Grafana workspace and select the **Endpoint** URL. |
| 42 | +1. In your Grafana endpoint, go to **Dashboards > New Dashboard**. |
| 43 | +1. Select one of three options: |
| 44 | + - **Add a new panel**: instantly creates a dashboard with a first default panel. |
| 45 | + - **Add a new row**: instantly creates a dashboard with a new empty row. |
| 46 | + - **Add a panel from the panel library**: instantly creates a dashboard with an existing reusable panel from another instance you have access to. |
| 47 | + |
| 48 | + :::image type="content" source="media/dashboard/from-scratch.png" alt-text="Screenshot of the Grafana instance. Create a new dashboard."::: |
| 49 | + |
| 50 | +1. Select the title of your first panel and select **Edit** to start editing your panel. |
| 51 | + |
| 52 | +## Edit a panel |
| 53 | + |
| 54 | +To update your Grafana panel, follow the steps below. |
| 55 | +1. Review the visualization to check if you're satisfied with the data and display: |
| 56 | + |
| 57 | + :::image type="content" source="media/dashboard/visualization.png" alt-text="Screenshot of the Grafana instance. Example of visualization."::: |
| 58 | + |
| 59 | +1. In the lower part of the page: |
| 60 | + 1. **Query** tab: |
| 61 | + 1. Review the selected data source. If necessary, select the drop-down list to use another data source. |
| 62 | + 1. Update the query. Each data source has a specific query editor that provides different features and capabilities for that type of [data source](https://grafana.com/docs/grafana/v9.1/datasources/#querying). |
| 63 | + 1. Select **+ Query** or **+ Expression** to add a new query or expression. |
| 64 | + |
| 65 | + :::image type="content" source="media/dashboard/edit-query.png" alt-text="Screenshot of the Grafana instance. Create a new dashboard."::: |
| 66 | + |
| 67 | + 1. **Transform** tab: filter data or queries, and organize or combine data before the data is visualized. |
| 68 | + 1. **Alert** tab: set alert rules and notifications. |
| 69 | + |
| 70 | +1. At the top of the page: |
| 71 | + 1. Toggle **Table view** to display data as a table. |
| 72 | + 1. Switch between **Fill** and **Actual** to edit panel size |
| 73 | + 1. Select time to update the time range |
| 74 | + 1. Select the **Visualization** drop-down menu to choose a visualization type that best supports your use case. Go to [visualization](https://grafana.com/docs/grafana/latest/panels-visualizations/visualizations/) for more information. |
| 75 | + 1. Select the **Panel options** icon on the right side to review and update a variety of panel options. |
| 76 | + |
| 77 | + :::image type="content" source="media/dashboard/panel-time-visualization-options.png" alt-text="Screenshot of the Grafana instance. Open options."::: |
| 78 | + |
| 79 | +Grafana displays a preview of your query results with the visualization applied. |
| 80 | + |
| 81 | +If needed, in the dropdowns at the top, make selections for your datasource instance. |
| 82 | + |
| 83 | +## Next steps |
| 84 | + |
| 85 | +In this how-to guide, you learned how to create a Grafana dashboard. To learn how to manage your data sources, go to: |
| 86 | + |
| 87 | +> [!div class="nextstepaction"] |
| 88 | +> [Configure data sources](how-to-data-source-plugins-managed-identity.md) |
0 commit comments