You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/managed-grafana/how-to-create-grafana-dashboard.md
+42-34Lines changed: 42 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,9 @@ In this guide, learn how to create a dashboard in Azure Managed Grafana to visua
14
14
15
15
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.
16
16
17
+
> [!NOTE]
18
+
> 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.](https://grafana.com/docs/grafana/latest/dashboards/)
19
+
17
20
## Prerequisites
18
21
19
22
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free).
@@ -26,30 +29,31 @@ To quickly create a dashboard, import a dashboard template from the Grafana Labs
26
29
27
30
1. From the Grafana Labs website, browse through [Grafana dashboards templates](https://grafana.com/grafana/dashboards/?category=azure) and select a dashboard to import.
28
31
1. Select **Copy ID to clipboard**.
32
+
1. For the next steps, use the Azure portal or the Azure CLI.
29
33
30
-
### [Portal](#tab/azure-portal)
34
+
### [Portal](#tab/azure-portal)
31
35
32
-
3. In the Azure portal, open your Azure Managed Grafana workspace and select the **Endpoint** URL.
33
-
1. In your Grafana endpoint, go to **Dashboards > Import**.
34
-
1. On the **Import** page, under **Import via grafana.com**, paste the Grafana dashboard ID copied earlier, and select **Load**.
36
+
1. In the Azure portal, open your Azure Managed Grafana workspace and select the **Endpoint** URL.
37
+
1. In your Grafana endpoint, go to **Dashboards > Import**.
38
+
1. On the **Import** page, under **Import via grafana.com**, paste the Grafana dashboard ID copied earlier, and select **Load**.
35
39
36
-
:::image type="content" source="media/dashboard/import-load.png" alt-text="Screenshot of the Grafana instance. Load dashboard to import.":::
40
+
:::image type="content" source="media/dashboard/import-load.png" alt-text="Screenshot of the Grafana instance. Load dashboard to import.":::
37
41
38
-
1. Optionally update the dashboard name, folder and UID.
39
-
1. Select a datasource and select **Import**.
40
-
1. A new dashboard is displayed.
41
-
1. Review the visualizations displayed and edit the dashboard if necessary.
42
+
1. Optionally update the dashboard name, folder and UID.
43
+
1. Select a datasource and select **Import**.
44
+
1. A new dashboard is displayed.
45
+
1. Review the visualizations displayed and edit the dashboard if necessary.
42
46
43
-
### [Azure CLI](#tab/azure-cli)
47
+
### [Azure CLI](#tab/azure-cli)
44
48
45
-
1. Open a CLI and run the `az login` command.
46
-
1. Run the [az grafana dashboard import](/cli/azure/grafana/dashboard#az-grafana-update)command and replace the placeholders `<AMG-name>`, `<AMG-resource-group>`, and `<dashboard-id>` with the name of the Azure Managed Grafana instance, its resource group, and the dashboard ID you copied earlier.
49
+
1. Open a CLI and run the `az login` command.
50
+
1. Run the [az grafana dashboard import](/cli/azure/grafana/dashboard#az-grafana-update)command and replace the placeholders `<AMG-name>`, `<AMG-resource-group>`, and `<dashboard-id>` with the name of the Azure Managed Grafana instance, its resource group, and the dashboard ID you copied earlier.
47
51
48
-
```azurecli
49
-
az grafana dashboard import --name <AMG-name> --resource-group <AMG-resource-group> --definition <dashboard-id>
50
-
```
52
+
```azurecli
53
+
az grafana dashboard import --name <AMG-name> --resource-group <AMG-resource-group> --definition <dashboard-id>
Duplicate a Grafana dashboard using your preferred method.
102
+
97
103
### [Portal](#tab/azure-portal)
98
104
99
105
To copy a Grafana dashboard:
@@ -110,35 +116,37 @@ To copy a Grafana dashboard:
110
116
1. Run the [az grafana dashboard show](/cli/azure/grafana/dashboard#az-grafana-dashboard-show) command to show the definition of the dashboard you want to duplicate, and copy the output.
111
117
112
118
```azurecli
113
-
az grafana dashboard show --name <AMG-name> --dashboard <dashboard-UID>
119
+
az grafana dashboard show --name <AMG-name> --resource-group <AMG-resource-group> --dashboard <dashboard-UID>
114
120
```
115
121
116
122
1. Run the [az grafana dashboard create](/cli/azure/grafana/dashboard#az-grafana-dashboard-create) command and replace the placeholders `<AMG-name>`, `<AMG-resource-group>`, `<title>`, and `<dashboard-id>` with your own information. Replace `<definition>` with the output you copied in the previous step, and remove the `uid`and `id`.
0 commit comments