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: data-explorer/grafana.md
+34-34Lines changed: 34 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
---
2
2
title: Visualize data from Azure Data Explorer by using Grafana
3
-
description: In this article, you learn to set up Azure Data Explorer as a data source for Grafana, and then visualize data from a sample cluster.
3
+
description: Discover how to configure Azure Data Explorer for Grafana and create insightful dashboards using sample data.
4
4
ms.reviewer: gabil
5
5
ms.topic: how-to
6
-
ms.date: 06/27/2023
6
+
ms.date: 09/28/2025
7
7
---
8
8
9
9
# Visualize data from Azure Data Explorer in Grafana
10
10
11
-
Grafana is an analytics platform where you can query and visualize data, and then create and share dashboards based on your visualizations. Grafana provides an Azure Data Explorer *plug-in*, which enables you to connect to and visualize data from Azure Data Explorer. The plug-in works with both [Azure Managed Grafana](/azure/managed-grafana/overview) and self-hosted Grafana.
11
+
Grafana is an analytics platform where you can query and visualize data, and then create and share dashboards based on your visualizations. Grafana provides an Azure Data Explorer *plugin*, which lets you connect to and visualize data from Azure Data Explorer. The plug-in works with both [Azure Managed Grafana](/azure/managed-grafana/overview) and self-hosted Grafana.
12
12
13
-
In this article, you learn how to [configure your cluster as a data source for Grafana](#configure-the-data-source) and [visualize data in Grafana](#visualize-data) for Azure Managed Grafana and self-hosted Grafana. To follow along with the examples in this article, [ingest the StormEvents sample data](web-ui-samples-query.md). [!INCLUDE [data-explorer-storm-events](includes/data-explorer-storm-events.md)]
13
+
This article shows you how to [configure your cluster as a data source for Grafana](#configure-the-data-source) and [visualize data in Grafana](#visualize-data) for Azure Managed Grafana and self-hosted Grafana. To follow the examples in this article, [ingest the StormEvents sample data](web-ui-samples-query.md). [!INCLUDE [data-explorer-storm-events](includes/data-explorer-storm-events.md)]
14
14
15
15
## Prerequisites
16
16
17
-
* For Azure Managed Grafana, an Azure account and [Azure Managed Grafana](/azure/managed-grafana/quickstart-managed-grafana-portal) instance.
18
-
* For self-hosted Grafana, [Grafana version 5.3.0 or later](https://docs.grafana.org/installation/) for your operating system and the [Azure Data Explorer plug-in](https://grafana.com/grafana/plugins/grafana-azure-data-explorer-datasource/) for Grafana. You need plug-in version 3.0.5 or later to use the Grafana query builder.
19
-
*An Azure Data Explorer cluster and database. You can [create a free cluster](start-for-free-web-ui.md) or [create a full cluster](create-cluster-and-database.md). To decide which is best for you, check the [feature comparison](start-for-free.md#feature-comparison).
17
+
* For Azure Managed Grafana, you need an Azure account and an[Azure Managed Grafana](/azure/managed-grafana/quickstart-managed-grafana-portal) instance.
18
+
* For self-hosted Grafana, install [Grafana version 5.3.0 or later](https://docs.grafana.org/installation/) for your operating system and the [Azure Data Explorer plug-in](https://grafana.com/grafana/plugins/grafana-azure-data-explorer-datasource/) for Grafana. Use plug-in version 3.0.5 or later to access the Grafana query builder.
19
+
*Set up an Azure Data Explorer cluster and database. You can [create a free cluster](start-for-free-web-ui.md) or [create a full cluster](create-cluster-and-database.md). To decide which option works best, review the [feature comparison](start-for-free.md#feature-comparison).
20
20
21
21
## Configure the data source
22
22
@@ -26,11 +26,11 @@ To configure Azure Data Explorer as a data source, follow the steps for your Gra
26
26
27
27
#### Add the managed identity to the Viewer role
28
28
29
-
Managed Grafana creates a system-assigned managed identity for each new workspace, by default. You can use it to access your Azure Data Explorer cluster.
29
+
Managed Grafana creates a system-assigned managed identity for each new workspace by default. You can use it to access your Azure Data Explorer cluster.
30
30
31
-
1. In the Azure portal, go to your Azure Data Explorer cluster.
31
+
1. In the Azure portal, open your Azure Data Explorer cluster.
32
32
33
-
1. In the **Overview** section, select the database that has the *StormEvents* sample data.
33
+
1. In the **Overview** section, select the database with the *StormEvents* sample data.
34
34
35
35
:::image type="content" source="includes/media/data-explorer-configure-data-source/select-database.png" alt-text="Screenshot of the Azure Data Explorer overview page and the selection of a sample database.":::
36
36
@@ -52,7 +52,7 @@ Managed Grafana workspaces come with the Azure Data Explorer plug-in preinstalle
52
52
53
53
1. Under **Overview**, select the **Endpoint** link to open the Grafana UI.
54
54
55
-
1. In Grafana, on the left menu, select the gear icon. Then select **Data Sources**.
55
+
1. In Grafana, on the left menu, select the gear icon, and then select **Data Sources**.
56
56
57
57
:::image type="content" source="media/grafana/data-sources.png" alt-text="Screenshot of the Grafana settings menu and the option for data sources.":::
58
58
@@ -64,7 +64,7 @@ Managed Grafana workspaces come with the Azure Data Explorer plug-in preinstalle
64
64
65
65
:::image type="content" source="media/grafana/input-cluster-uri.png" alt-text="Screenshot of the pane for connection details with the box for cluster URL highlighted.":::
@@ -86,7 +86,7 @@ You can create the service principal in the [Azure portal](#azure-portal) or by
86
86
87
87
##### Azure CLI
88
88
89
-
1.Use the following command to create a service principal. Set an appropriate scope and a role type of`reader`.
89
+
1.Run the following command to create a service principal. Specify an appropriate scope and set the role type to`reader`.
90
90
91
91
```azurecli
92
92
az ad sp create-for-rbac --name "https://{UrlToYourDashboard}:{PortNumber}" --role "reader" \
@@ -215,19 +215,19 @@ To enable results cache rendering, do the following on the **Query Optimizations
215
215
216
216
##### Enable weak consistency
217
217
218
-
Clusters are configured with strong consistency. This default configuration guarantees that query results are up to date with all changes in the cluster.
218
+
Clusters use strong consistency by default, which guarantees that query results are up to date with all changes in the cluster.
219
219
220
220
When you enable weak consistency, query results can have a lag of 1 to 2 minutes after cluster alterations. However, weak consistency might boost visual rendering time. If immediate consistency isn't critical and performance is marginal, enable weak consistency to improve performance. For more information, see [Query consistency](/kusto/concepts/query-consistency?view=azure-data-explorer&preserve-view=true).
221
221
222
-
To enable weak consistency, on the **Query Optimizations** pane, select **Data consistency** > **Weak**.
222
+
To enable weak consistency, in the **Query Optimizations** pane, select **Data consistency** > **Weak**.
223
223
224
224
---
225
225
226
226
## Visualize data
227
227
228
-
You finished configuring Azure Data Explorer as a data source for Grafana. Now it's time to visualize data.
228
+
You've configured Azure Data Explorer as a data source for Grafana. Now it's time to visualize data.
229
229
230
-
The following basic example uses both the query builder mode and the raw mode of the query editor. We recommend that you view [write queries for Azure Data Explorer](/azure/data-explorer/kusto/query/tutorials/learn-common-operators) for examples of other queries to run against the dataset.
230
+
The following basic example uses both the query builder mode and the raw mode of the query editor. View [write queries for Azure Data Explorer](/azure/data-explorer/kusto/query/tutorials/learn-common-operators) for examples of other queries to run against the dataset.
231
231
232
232
1. In Grafana, on the left menu, select the plus icon. Then select **Dashboard**.
233
233
@@ -237,17 +237,17 @@ The following basic example uses both the query builder mode and the raw mode of
237
237
238
238
:::image type="content" source="media/grafana/add-graph.png" alt-text="Screenshot of the page for adding a panel, with the graph option highlighted.":::
239
239
240
-
1. On the graph pane, select **Panel Title** > **Edit**.
240
+
1. On the graph pane, select **Panel title** > **Edit**.
241
241
242
242
:::image type="content" source="media/grafana/edit-panel.png" alt-text="Screenshot of the Grafana panel menu, with the edit option highlighted.":::
243
243
244
-
1. At the bottom of the pane, select **Data Source**, and then select the data source that you configured.
244
+
1. At the bottom of the pane, select **Data source**, and then select the data source you configured.
245
245
246
246
:::image type="content" source="media/grafana/select-data-source.png" alt-text="Screenshot of the menu for selecting a data source.":::
247
247
248
248
### Query builder mode
249
249
250
-
Use query builder mode to define your query.
250
+
Use the query builder mode to define your query.
251
251
252
252
1. Below the data source, select **Database** and choose your database from the dropdown list.
253
253
1. Select **From** and choose your table from the dropdown list.
@@ -256,8 +256,8 @@ Use query builder mode to define your query.
256
256
257
257
1. Now that the table is defined, filter the data:
258
258
259
-
1. Select **+** to the right of **Where (filter)** to select one or more columns in your table.
260
-
1. For each filter, define the values by using the applicable operator. This selection is similar to using the [where operator](/kusto/query/where-operator?view=azure-data-explorer&preserve-view=true) in Kusto Query Language.
259
+
1. Select **+** to the right of **Where (filter)** to choose one or more columns in your table.
260
+
1. For each filter, define the values by using the applicable operator. This step is similar to using the [where operator](/kusto/query/where-operator?view=azure-data-explorer&preserve-view=true) in Kusto Query Language.
261
261
262
262
1. Select the values to present in the table:
263
263
@@ -296,7 +296,7 @@ Use raw mode to edit your query.
296
296
297
297
:::image type="content" source="media/grafana/last-six-hours.png" alt-text="Screenshot of the default time filter of last six hours.":::
298
298
299
-
1. Specify a custom range that covers 2007, the year included in the StormEvents sample dataset. Then select **Apply**.
299
+
1. Enter a custom range that covers 2007, the year included in the StormEvents sample dataset. Then select **Apply**.
300
300
301
301
:::image type="content" source="media/grafana/custom-date-range.png" alt-text="Screenshot of the custom range control, with a custom date range selected.":::
302
302
@@ -306,30 +306,30 @@ Use raw mode to edit your query.
306
306
307
307
1. On the top menu, select the save icon: :::image type="icon" source="media/grafana/save-icon.png":::.
308
308
309
-
To switch to the query builder mode, select **Switch to builder**. Grafana will convert the query to the available logic in the query builder. The query builder logic is limited, so you might lose manual changes that you made to the query.
309
+
To switch to query builder mode, select **Switch to builder**. Grafana will convert the query to the available logic in the query builder. The query builder logic is limited, so you might lose manual changes that you made to the query.
310
310
311
311
:::image type="content" source="media/grafana/raw-mode.png" alt-text="Screenshot of the query window, with the button for switching to the builder highlighted.":::
312
312
313
313
## Create alerts
314
314
315
-
1. In **Home Dashboard**, select **Alerting** > **Notification channels** to create a new notification channel.
315
+
1. In **Home Dashboard**, select **Alerting** > **Notification channels** to create a notification channel.
316
316
317
-
:::image type="content" source="media/grafana/create-notification-channel.png" alt-text="Screenshot of the dashboard, with the option for creating a notification channel highlighted.":::
317
+
:::image type="content" source="media/grafana/create-notification-channel.png" alt-text="Screenshot of the dashboard with the option for creating a notification channel highlighted.":::
318
318
319
-
1. Enter a name and type under **New Notification Channel**, and then select **Save**.
319
+
1. Enter a name and type under **New Notification Channel**, then select **Save**.
320
320
321
-
:::image type="content" source="media/grafana/new-notification-channel-adx.png" alt-text="Screenshot of the window for creating a new notification channel.":::
321
+
:::image type="content" source="media/grafana/new-notification-channel-adx.png" alt-text="Screenshot of the window for creating a notification channel.":::
322
322
323
-
1. On the dashboard, select **Edit** from the dropdown list.
323
+
1. On the dashboard, select **Edit** from the drop-down list.
324
324
325
-
:::image type="content" source="media/grafana/edit-panel-4-alert.png" alt-text="Screenshot of the dashboard panel, with the Edit menu command highlighted.":::
325
+
:::image type="content" source="media/grafana/edit-panel-4-alert.png" alt-text="Screenshot of the dashboard panel with the Edit menu command highlighted.":::
326
326
327
-
1. Select the alert bell icon to open the **Alert** pane. Select **Create Alert**, and then complete the properties for the alert.
327
+
1. Select the alert bell icon to open the **Alert** pane. Select **Create Alert**, then complete the properties for the alert.
328
328
329
-
:::image type="content" source="media/grafana/alert-properties.png" alt-text="Screenshot of the pane for selecting alert properties.":::
329
+
:::image type="content" source="media/grafana/alert-properties.png" alt-text="Screenshot of the pane for selecting the alert properties.":::
330
330
331
-
1. Select the **Save dashboard** icon to save your changes.
331
+
1. Select the **Save dashboard** icon to save the changes.
332
332
333
333
## Related content
334
334
335
-
* [Write queries for Azure Data Explorer](/azure/data-explorer/kusto/query/tutorials/learn-common-operators)
335
+
* Learn how to [write queries for Azure Data Explorer](/azure/data-explorer/kusto/query/tutorials/learn-common-operators).
description: Learn about the available visualize integrations.
4
4
ms.reviewer: aksdi
5
5
ms.topic: conceptual
6
-
ms.date: 01/14/2024
6
+
ms.date: 09/28/2025
7
7
# CustomerIntent: As a data ingestor, I want to know what visualize connectors and tools are available, so that I can choose the right one for my use case.
0 commit comments