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-dashboard.md
+52-27Lines changed: 52 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@ description: Learn how to create and configure Azure Managed Grafana dashboards.
4
4
author: maud-lv
5
5
ms.author: malev
6
6
ms.service: managed-grafana
7
-
ms.topic: how-to
8
-
ms.date: 01/02/2023
7
+
ms.topic: how-to
8
+
ms.date: 03/07/2023
9
9
---
10
10
11
11
# Create a dashboard in Azure Managed Grafana
@@ -15,7 +15,7 @@ In this guide, learn how to create a dashboard in Azure Managed Grafana to visua
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
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/)
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
19
20
20
## Prerequisites
21
21
@@ -25,39 +25,64 @@ A Grafana dashboard contains panels and rows. You can import a Grafana dashboard
25
25
26
26
## Import a Grafana dashboard
27
27
28
-
To quickly create a dashboard, import a dashboard template from the Grafana Labs website and add it to your Managed Grafana workspace.
28
+
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.
29
+
30
+
### Import a dashboard from Grafana Labs
31
+
32
+
Import a dashboard template from the Grafana Labs website.
29
33
30
34
1. From the Grafana Labs website, browse through [Grafana dashboards templates](https://grafana.com/grafana/dashboards/?category=azure) and select a dashboard to import.
31
35
1. Select **Copy ID to clipboard**.
32
36
1. For the next steps, use the Azure portal or the Azure CLI.
33
37
34
38
### [Portal](#tab/azure-portal)
35
39
36
-
1. In the Azure portal, open your Azure Managed Grafana workspace and select the **Endpoint** URL.
37
-
1. In the Grafana portal, 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**.
40
+
1. In the Azure portal, open your Azure Managed Grafana workspace and select the **Endpoint** URL.
41
+
1. In the Grafana portal, go to **Dashboards > Import**.
42
+
1.Under**Import via grafana.com**, paste the Grafana dashboard ID copied earlier, and select **Load**.
39
43
40
-
:::image type="content" source="media/create-dashboard/import-load.png" alt-text="Screenshot of the Grafana instance. Load dashboard to import.":::
44
+
:::image type="content" source="media/create-dashboard/import-load.png" alt-text="Screenshot of the Grafana instance. Load dashboard to import.":::
41
45
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.
46
+
1. Optionally update the dashboard name, folder, unique identifier (UID), and other parameters.
47
+
1. Select a datasource and select **Import**.
48
+
1. A new dashboard is displayed. Review and edit it if necessary.
46
49
47
50
### [Azure CLI](#tab/azure-cli)
51
+
52
+
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.
48
53
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.
51
-
52
-
```azurecli
53
-
az grafana dashboard import --name <AMG-name> --resource-group <AMG-resource-group> --definition <dashboard-id>
54
-
```
54
+
```azurecli
55
+
az grafana dashboard import --name <AMG-name> --resource-group <AMG-resource-group> --definition <dashboard-id>
56
+
```
55
57
56
58
---
57
59
60
+
### Import a JSON dashboard
61
+
62
+
Follow these steps to import a JSON dashboard to Grafana:
63
+
64
+
### [Portal](#tab/azure-portal)
65
+
66
+
1. In the Azure portal, open your Azure Managed Grafana workspace and select the **Endpoint** URL.
67
+
1. Go to **Dashboard > Import** use a preferred import option:
68
+
- Select **Upload JSON file** and then **Load** to import from a JSON file.
69
+
- Paste JSON text in the **Import via panel json** box and select **Load** to use text from your clipboard.
70
+
1. Optionally update the dashboard name, folder, unique identifier (UID) and other parameters.
71
+
1. Select **Import**.
72
+
73
+
### [Azure CLI](#tab/azure-cli)
74
+
75
+
Run the [az grafana dashboard import](/cli/azure/grafana/dashboard#az-grafana-update) command and replace the placeholders `<AMG-name>`, `<AMG-resource-group>`, and `<local-path-to-file>` with the name of the Azure Managed Grafana instance, its resource group, and the path to the JSON File on your local machine, ending with `.json`.
76
+
77
+
```azurecli
78
+
az grafana dashboard import --name <AMG-name> --resource-group <AMG-resource-group> --definition @<local-path-to-file>
79
+
```
80
+
81
+
---
82
+
58
83
## Create a new Grafana dashboard
59
84
60
-
If none of the pre-configured dashboards listed on the Grafana Labs website fit your needs, create a new dashboard.
85
+
To create your own new dashboard, follow these steps.
61
86
62
87
### [Portal](#tab/azure-portal)
63
88
@@ -104,10 +129,10 @@ Duplicate a Grafana dashboard using your preferred method.
104
129
105
130
To copy a Grafana dashboard:
106
131
107
-
1. Open an existing dashboard in your Grafana instance
108
-
1. Select **Dashboard settings**
109
-
1. Select **Save as**
110
-
1. Enter a new name and/or a new folder and select **Save**
132
+
1. Open an existing dashboard in your Grafana instance.
133
+
1. Select **Dashboard settings**.
134
+
1. Select **Save as**.
135
+
1. Enter a new name and/or a new folder and select **Save**.
111
136
112
137
:::image type="content" source="media\create-dashboard\copy-dashboard.png" alt-text="Screenshot of the Grafana instance. Duplicate a dashboard.":::
113
138
@@ -168,8 +193,8 @@ To update a Grafana panel, follow the steps below.
168
193
169
194
1. At the top of the page:
170
195
1. Toggle **Table view** to display data as a table.
171
-
1. Switch between **Fill** and **Actual** to edit panel size
172
-
1. Select the time icon to update the time range
196
+
1. Switch between **Fill** and **Actual** to edit panel size.
197
+
1. Select the time icon to update the time range.
173
198
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.
174
199
175
200
:::image type="content" source="media/create-dashboard/panel-time-visualization-options.png" alt-text="Screenshot of the Grafana instance. Time, visualization and more options.":::
title: Share an Azure Managed Grafana dashboard or panel
3
+
description: Learn how to share a Grafana dashboard with internal and external stakeholders, such as customers or partners.
4
+
author: maud-lv
5
+
ms.author: malev
6
+
ms.service: managed-grafana
7
+
ms.topic: how-to
8
+
ms.date: 03/01/2023
9
+
---
10
+
11
+
# Share a Grafana dashboard or panel
12
+
13
+
In this guide for Azure Managed Grafana, learn how to share a Grafana dashboard or a Grafana panel with internal and external stakeholders, whether they're registered in your Azure Active Directory tenant or not. You can choose to share a dashboard or panel with restricted access, or share it with public access to facilitate collaboration with partners or customers.
14
+
15
+
You can share Grafana visualizations by generating:
16
+
17
+
- a direct link
18
+
- a snapshot
19
+
- an embedded link (for panels only)
20
+
- a library panel (for panels only)
21
+
- an export link (for dashboards only)
22
+
23
+
> [!NOTE]
24
+
> 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/)
25
+
26
+
## Prerequisites
27
+
28
+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free).
29
+
- An Azure Managed Grafana instance. If you don't have one yet, [create an Azure Managed Grafana instance](./quickstart-managed-grafana-portal.md).
30
+
- A Grafana dashboard. If you don't have one, [create a Grafana dashboard](./quickstart-managed-grafana-portal.md).
31
+
32
+
## Open sharing options
33
+
34
+
Access Grafana dashboard and panel sharing options with the following steps:
35
+
36
+
1. In the Azure portal, open your Azure Managed Grafana workspace and select the **Endpoint** URL.
37
+
1. In the Grafana portal, go to **Dashboards > Browse**, and open a dashboard of your choice.
38
+
1. Open the sharing options:
39
+
- To share a whole dashboard, select the **Share dashboard or panel** icon at the top of the page.
40
+
- To share a single dashboard panel, hover on top of a panel title, expand the panel menu and select **Share**.
41
+
42
+
:::image type="content" source="media/share-dashboard/find-share-option.png" alt-text="Screenshot of the Grafana instance. Create a new dashboard.":::
43
+
44
+
A new window opens, offering various sharing options.
45
+
46
+
> [!TIP]
47
+
> If you update a dashboard or a panel, make sure to save your changes before sharing it so that it contains your latest changes.
48
+
49
+
### Share a link
50
+
51
+
The **Link** tab lets you create a direct link to a Grafana dashboard or panel.
52
+
53
+
Create a sharable link in one step, by selecting **Copy**, at the bottom of the tab. Optionally customize sharing with the options below:
54
+
55
+
-**Lock time range**: sets the time range of the shared panel or dashboard to the time range currently displayed in your shared panel or dashboard.
56
+
-**Theme**: keep the current theme or choose a dark or a light theme.
57
+
-**Shorten URL**: shortens the sharable link.
58
+
59
+
> [!NOTE]
60
+
> Users must have a Grafana Viewer permission to view shared links.
61
+
62
+
### Share a snapshot
63
+
64
+
The **Snapshot** tab lets you share an interactive dashboard or panel publicly. Sensitive data like queries (metric, template, and annotation) and panel links are removed from the snapshot, leaving only the visible metric data and series names embedded in your dashboard.
65
+
66
+
1. Optionally update the snapshot name, select an expiry date and change the value of the timeout.
67
+
1. Choose to publish the Grafana snapshot:
68
+
- to snapshots.raintank.io to make it accessible publicly to anyone with the link.
69
+
- as a local snapshot, to restrict access to users who are registered in your Azure AD tenant.
70
+
1.**Copy** the snapshot URL generated by Grafana. Select **Delete snapshot** if you no longer need it.
71
+
72
+
> [!NOTE]
73
+
> - Snapshots published on snapshots.raintank.io can be viewed by anyone who has the link.
74
+
> - Users must have a Grafana Viewer permission to view snapshots shared locally.
75
+
76
+
### Share a panel using an embedded link
77
+
78
+
The **Embed** tab generates HTML code embedding an iframe with a panel, so that you can include it in another web page. The HTML code is automatically generated. Get it in a single step by selecting **Copy to clipboard** at the bottom of the tab. Optionally customize sharing with the options below:
79
+
80
+
-**Current time range**: transforms the relative time range of the shared panel to an absolute time range, as currently displayed in your shared panel.
81
+
-**Theme**: keep the current theme or choose a dark or a light theme.
82
+
-**Shorten URL**: shortens the sharable link.
83
+
84
+
> [!NOTE]
85
+
> Users must have a Grafana Viewer permission to view embedded links.
86
+
87
+
### Create a library panel
88
+
89
+
The **Library panel** tab lets you create a library panel that can be reused in other Grafana dashboards. Do this in a single step by selecting The **Create library panel** at the bottom of the tab. Optionally update the panel library name and select another folder to save it in.
90
+
91
+
Once you've created a library panel, reuse it in other dashboards of the same Grafana instance by going to **Dashboards > New dashboard > Add panel from panel library**.
92
+
93
+
### Export a dashboard
94
+
95
+
The **Export** tab lets you export a dashboard in JSON format. Do this by selecting **Save to file** to download the JSON file, or select **View JSON > Copy to Clipboard**.
96
+
97
+
**Export for sharing externally** is disabled by default. Optionally enable this option to generate JSON code for external stakeholders. The exported dashboard can then be [imported to Grafana](how-to-create-dashboard.md#import-a-json-dashboard).
98
+
99
+
In this how-to guide, you learned how to create a Grafana dashboard. To learn about the latest updates to Azure Managed Grafana, go to:
0 commit comments