Skip to content

Commit 05791a1

Browse files
Merge pull request #229749 from maud-lv/ml-g-dashboardext
Create doc: how to share dashboard
2 parents ba8bf15 + 692573c commit 05791a1

File tree

5 files changed

+158
-27
lines changed

5 files changed

+158
-27
lines changed

articles/managed-grafana/how-to-create-dashboard.md

Lines changed: 52 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: Learn how to create and configure Azure Managed Grafana dashboards.
44
author: maud-lv
55
ms.author: malev
66
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
99
---
1010

1111
# 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
1515
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.
1616

1717
> [!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/).
1919
2020
## Prerequisites
2121

@@ -25,39 +25,64 @@ A Grafana dashboard contains panels and rows. You can import a Grafana dashboard
2525

2626
## Import a Grafana dashboard
2727

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.
2933

3034
1. From the Grafana Labs website, browse through [Grafana dashboards templates](https://grafana.com/grafana/dashboards/?category=azure) and select a dashboard to import.
3135
1. Select **Copy ID to clipboard**.
3236
1. For the next steps, use the Azure portal or the Azure CLI.
3337

3438
### [Portal](#tab/azure-portal)
3539

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**.
3943

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.":::
4145

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.
4649

4750
### [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.
4853

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+
```
5557

5658
---
5759

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+
5883
## Create a new Grafana dashboard
5984

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.
6186

6287
### [Portal](#tab/azure-portal)
6388

@@ -104,10 +129,10 @@ Duplicate a Grafana dashboard using your preferred method.
104129

105130
To copy a Grafana dashboard:
106131

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**.
111136

112137
:::image type="content" source="media\create-dashboard\copy-dashboard.png" alt-text="Screenshot of the Grafana instance. Duplicate a dashboard.":::
113138

@@ -168,8 +193,8 @@ To update a Grafana panel, follow the steps below.
168193
169194
1. At the top of the page:
170195
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.
173198
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.
174199
175200
:::image type="content" source="media/create-dashboard/panel-time-visualization-options.png" alt-text="Screenshot of the Grafana instance. Time, visualization and more options.":::
@@ -188,7 +213,7 @@ az grafana dashboard update --name <AMG-name> --resource-group <AMG-resource-gro
188213

189214
## Next steps
190215

191-
In this how-to guide, you learned how to create a Grafana dashboard. To learn how to manage your data sources, go to:
216+
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:
192217

193218
> [!div class="nextstepaction"]
194-
> [Configure data sources](how-to-data-source-plugins-managed-identity.md)
219+
> [Share a dashboard or panel](how-to-share-dashboard.md)
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
---
2+
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:
100+
101+
> [!div class="nextstepaction"]
102+
> [What's new](concept-whats-new.md)

articles/managed-grafana/index.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ landingContent:
4343
url: how-to-authentication-permissions.md
4444
- text: Create a dashboard
4545
url: how-to-create-dashboard.md
46+
- text: Share a dashboard
47+
url: how-to-share-dashboard.md
4648
- text: Configure SMTP settings
4749
url: how-to-smtp-settings.md
4850
- title: Manage Azure Managed Grafana
57.8 KB
Loading

articles/managed-grafana/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ items:
3737
href: how-to-permissions.md
3838
- name: Create a dashboard
3939
href: how-to-create-dashboard.md
40+
- name: Share a dashboard
41+
href: how-to-share-dashboard.md
4042
- name: Share an Azure Managed Grafana instance
4143
href: how-to-share-grafana-workspace.md
4244
- name: Configure SMTP settings

0 commit comments

Comments
 (0)