Skip to content

Commit ee40f34

Browse files
committed
wip2
1 parent b557daf commit ee40f34

File tree

3 files changed

+39
-20
lines changed

3 files changed

+39
-20
lines changed
12.3 KB
Loading
16.2 KB
Loading

articles/azure-monitor/essentials/metrics-explorer.md

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,57 @@
11
---
2-
title: Metrics explorer for Azure monitor workspace (Preview)
3-
description: Learn about Metrics Explorer for Azure monitor workspace, a tool in that allows you to analyze and visualize metrics stored in an Azure monitor worksapce.
2+
title: Metrics explorer for Azure Monitor workspace (Preview)
3+
description: Learn about Metrics Explorer for Azure Monitor workspace, a tool in that allows you to analyze and visualize metrics stored in an Azure Monitor workspace.
44
author: EdB-MSFT
55
ms.service: azure-monitor
66
ms-author: edbaynash
77
ms.topic: conceptual
88
ms.date: 04/01/2024
99
ms.reviewer: priyamishra
10+
11+
# Customer intent: As an Azure Monitor user, I want to learn how to use Metrics Explorer for Azure Monitor workspace to analyze and visualize metrics stored in an Azure Monitor workspace using PromQL.
12+
1013
---
1114

12-
# Metrics explorer for Azure monitor workspace (Preview)
15+
# Metrics explorer for Azure Monitor workspace (Preview)
1316

1417
Metrics Explorer for Azure Monitor workspace (Preview) is allows you to analyze and visualize metrics stored in an Azure Monitor workspace. You can use the metrics explorer to create and customize charts, and to analyze and troubleshoot issues with your resources. The metrics explorer supports Prometheus query language (PromQL), allowing you to query and visualize metrics data in a flexible and powerful way. For more information on PromQL, see [Querying Prometheus](https://prometheus.io/docs/prometheus/latest/querying/basics/).
1518

1619

17-
## Create a Chart using Metrics Explorer for Azure Monitor workspace (Preview)
20+
## Create a Chart
1821

19-
Metrics explorer for Azure Monitor workspace (Preview) is available from the **Metrics** blade of the Azure monitor workspace in the Azure portal. The **New chart** pane opens on the right side of the screen.
22+
Metrics explorer for Azure Monitor workspace (Preview) is available from the **Metrics** blade of the Azure Monitor workspace in the Azure portal. The **New chart** pane opens on the right side of the screen.
2023

2124

2225

2326
The chart pane has two options for charting a metric:
2427
- Add with builder
2528
- Add with editor.
2629

30+
### Create a chart with the builder
2731
To add a metric with the builder, select **Add metric** and select **Add with builder**. Use the toolbar to select a scope and metric from the drop-down lists. The scope is the azure monitor workspace where the metric is stored. The metric is displayed by default as a line chart the chart. Select your preferred chart type from the dropdown list in the toolbar. Customize the chart by selecting the gear-wheel icon. You can change the chart title, add annotations, and set the time range for the chart. You can also add
2832

2933

3034

3135
:::image type="content" source="./media/metrics-explorer/add-metric-with-builder.png" lightbox="./media/metrics-explorer/add-metric-with-builder.png" alt-text="A screenshot showing adding a metric using the builder in the metrics explorer." :::
3236

33-
37+
### Create a chart with the editor and PromQL
3438
To add a metric using the editor, select **Add metric** and select **Add with editor**. Use select a scope form the dropdown list and in the editor field, enter a PromQL query to retrieve metrics data. Select **Run** to run the query and display the results in the chart. You can customize the chart by selecting the gear-wheel icon. You can change the chart title, add annotations, and set the time range for the chart.
3539

3640
:::image type="content" source="./media/metrics-explorer/add-metric-with-editor.png" lightbox="./media/metrics-explorer/add-metric-with-editor.png" alt-text="A screenshot showing adding a metric using the editor." :::
3741

3842

3943

4044

41-
## Muliple Metrics and charts
45+
## Muliple metrics and charts
4246
Add multiple metrics to the chart by selecting **Add metric**. Use either the builder or the editor to add metrics to the chart.
4347
You can add up to <<<<<<<10>>>>>>> metrics to a chart. Each metric and query is plotted on the chart and added to the legend. You can choose a different scope for each metric by selecting the scope dropdown list in the toolbar to compare metrics from different resources.
4448

4549
> [!NOTE]
4650
> Running both the code editor and query builder on the same chart is not supported in this current release and may result in unexpected behavior.
4751
48-
You can create additional charts by selecting **New chart**. Each chart can have multiple metrics.
49-
Each chart can have multiple metrics, different chart types and settings. The time range is common for all the charts in the workspace.
52+
You can create additional charts by selecting **New chart**. Each chart can have multiple metrics, different chart types and settings. The time range and granularity is common for all the charts in the workspace.
5053

51-
To remove a chart select the **...** options menu and select **Remove**.
54+
To remove a chart select the **...** options icon and select **Remove**.
5255
:::image type="content" source="./media/metrics-explorer/create-multiple-charts.png" lightbox="./media/metrics-explorer/create-multiple-charts.png" alt-text="A screenshot showing multiple charts.":::
5356

5457
## Configure the time range
@@ -62,32 +65,48 @@ Set the time range for the chart by selecting the time range dropdown list in th
6265

6366
To pan, select the left and right arrows at the edge of the chart. The arrow control moves the selected time range back and forward by one half of the chart's time span. If you're viewing the past 24 hours, selecting the left arrow causes the time range to shift to span a day and a half to 12 hours ago.
6467

65-
:::image type="content" source="./media/metrics-explorer/pan-time-axis.gif" lightbox="./media/metrics-explorer/pan-time-axis.gif" alt-text="A screeshot showing panning across the time axis.":::
68+
:::image type="content" source="./media/metrics-explorer/pan-time-axis.gif" lightbox="./media/metrics-explorer/pan-time-axis.gif" alt-text="A screenshot showing panning across the time axis.":::
6669

6770

6871
## Zoom into metrics data
6972

7073
You can configure the time granularity of the chart data to support zoom in and zoom out for the time range. Use the time brush to investigate an interesting area of the chart like a spike or a dip in the data. Select an area on the chart and the chart zooms in to show more detail for the selected area based on your granularity settings. If the time grain is set to Automatic, zooming selects a smaller time grain. The new time range applies to all charts in metrics explorer.
7174

7275

73-
:::image type="content" source="./media/metrics-explorer/zoom-in-time.gif" lightbox="./media/metrics-explorer//zoom-in-time.gif" alt-text="A screeshot showing zooming in on the time axis.":::
76+
:::image type="content" source="./media/metrics-explorer/zoom-in-time.gif" lightbox="./media/metrics-explorer/zoom-in-time.gif" alt-text="A screenshot showing zooming in on the time axis.":::
77+
78+
## Save and share charts
79+
80+
After you configure a chart, you can add it to a dashboard or workbook. By adding a chart to a dashboard or workbook, you can make it accessible to your team. You can also gain insights by viewing it in the context of other monitoring information.
81+
82+
- To pin a configured chart to a dashboard, in the upper-right corner of the chart, select Save to dashboard > Pin to dashboard.
83+
- To save a configured chart to a workbook, in the upper-right corner of the chart, select Save to dashboard > Save to workbook.
7484

85+
:::image type="content" source="./media/metrics-explorer/save-chart.png" lightbox="./media/metrics-explorer/save-chart.png" alt-text="A screenshot showing the save menu.":::
86+
87+
The Azure Monitor metrics explorer Share menu includes several options for sharing your metric chart.
88+
89+
- Use the **Download to Excel** option to immediately download your chart.
90+
- Select **Copy link** to add a link to your chart to the clipboard.A notification is recieved when the link is copied successfully.
91+
- **Send to Workbook** sends your chart to a new or existing workbook.
92+
- Select **Pin to Grafana** to pin your chart to a new or existing Grafana dashboard.
93+
94+
:::image type="content" source="./media/metrics-explorer/share-chart.png" lightbox="./media/metrics-explorer/share-chart.png" alt-text="A screenshot showing the share menu.":::
7595

7696
# Supported PromQL funtions
7797

7898

7999

100+
{TBD}
101+
102+
80103

81104

105+
# Limitations
82106

83-
cluster (ci-prod-aks-mac-weu) --
84-
85-
sum(
86-
container_memory_working_set_bytes{job="cadvisor", cluster="ci-prod-aks-mac-weu", namespace="kube-system", container!="", image!=""}
87-
* on(namespace,pod)
88-
group_left(workload, workload_type) namespace_workload_pod:kube_pod_owner:relabel{cluster="ci-prod-aks-mac-weu", namespace="kube-system", workload_type="deployment"}
89-
) by (workload, workload_type)
107+
The metrics explorer for Azure Monitor workspace is in preview and has some limitations.
108+
- The metrics explorer supports up to 10 metrics per chart. <<<<<<>>>>>>>
109+
- The metrics explorer does not support running both the code editor and query builder on the same chart.
90110

91111

92112

93-
IS there a limit to the numner of metrics on a chart ?

0 commit comments

Comments
 (0)