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/azure-monitor/essentials/metrics-explorer.md
+48-18Lines changed: 48 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,50 +14,68 @@ ms.reviewer: priyamishra
14
14
15
15
# Metrics explorer for Azure Monitor workspace (Preview)
16
16
17
-
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/).
17
+
Metrics Explorer for Azure Monitor workspace (Preview) allows you to analyze and visualize metrics stored in an Azure Monitor workspace. You can use the metrics explorer to create and customize charts, analyze, and troubleshoot issues with your resources. The metrics explorer supports Prometheus query language (PromQL), letting you 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/).
18
18
19
19
20
-
## Create a Chart
21
-
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.
23
-
20
+
## Create a chart
24
21
22
+
Metrics explorer for Azure Monitor workspace (Preview) is available from the **Metrics** menu item of the Azure Monitor workspace in the Azure portal.
25
23
26
24
The chart pane has two options for charting a metric:
27
25
- Add with builder
28
26
- Add with editor.
29
27
30
28
### Create a chart with the builder
31
-
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
32
-
29
+
To add a metric with the builder,
30
+
1. Select **Add metric** and select **Add with builder** from the dropdown.
31
+
1. Select a scope. The scope is the Azure monitor workspace where the metric is stored.
32
+
1. Select a metric from the drop-down list.
33
33
34
+
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.
34
35
35
36
:::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." :::
36
37
37
38
### Create a chart with the editor and PromQL
38
-
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.
39
+
40
+
To add a metric using the editor,
41
+
1. Select **Add metric** and select **Add with editor** from the dropdown.
42
+
1. Select a **Scope** from the dropdown list/
43
+
1. Enter a PromQL query in the editor field. 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.
39
44
40
45
:::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." :::
41
46
42
47
48
+
## Multiple metrics and charts
49
+
Each worspace can host multiple charts with each chart containing multiple metrics.
43
50
51
+
### Add a metric
44
52
45
-
## Muliple metrics and charts
46
-
Add multiple metrics to the chart by selecting **Add metric**. Use either the builder or the editor to add metrics to the chart.
47
-
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.
53
+
Add multiple metrics to the chart by selecting **Add metric**. Use either the builder or the editor to add metrics to the chart.
54
+
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.
48
55
49
56
> [!NOTE]
50
57
> 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.
51
58
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.
53
59
54
-
To remove a chart select the **...** options icon and select **Remove**.
60
+
### Add a new chart
61
+
You can create additional charts by selecting **New chart**. Each chart can have multiple metrics and different chart types and settings.
62
+
63
+
The time range and granularity are applied to all the charts in the workspace.
The time picker lets you configure the time range for your metric chart to view data that's relevant to your monitoring scenario. By default, the chart shows the most recent 24 hours of metrics data.
67
+
### Remove a chart
68
+
69
+
To remove a chart select the **...** options icon and select **Remove**.
70
+
71
+
## Configure time range and granularity
72
+
73
+
Configure the time range and granularity for your metric chart to view data that's relevant to your monitoring scenario. By default, the chart shows the most recent 24 hours of metrics data.
74
+
75
+
Set the time range for the chart by selecting the time range dropdown list in the toolbar.
76
+
77
+
Time grain refers to the frequency of sampling and display of the data points on the chart. Select the time granularity by using the time picker in metrics explorer. If the data is stored at a lower granularity than selected, the metric values displayed are aggregated to the level of granularity selected. The time grain is set to automatic by default. The automatic setting selects the best time grain based on the time range selected.
59
78
60
-
Set the time range for the chart by selecting the time range dropdown list in the toolbar.
61
79
62
80
:::image type="content" source="./media/metrics-explorer/time-picker.png" lightbox="./media/metrics-explorer/time-picker.png" alt-text="A screenshot showing time range picker." :::
63
81
@@ -70,11 +88,23 @@ To pan, select the left and right arrows at the edge of the chart. The arrow con
70
88
71
89
## Zoom into metrics data
72
90
73
-
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.
91
+
Select an area on the chart and the chart to zoom in and 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. To zoom back out, select the **Undo zoom** button.
74
92
75
93
76
94
:::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
95
96
+
## Customize the chart
97
+
98
+
Customize the chart by selecting the gear-wheel icon in the toolbar.
99
+
100
+
-**Chart title**: Change the title of the chart.
101
+
-**Chart type**: Change the chart type to line, area, bar, or scatter.
102
+
-**Y-axis range**: Change the minimum and maximum values of the Y-axis. Use these settings to focus on a specific range of values in the chart.
103
+
-**Legends**: Position, show or hide the legend, labels, and hover card for the chart.
104
+
-**Query settings, Scrape interval**: Set the prometheus query settings. The default is 1 minute.
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.
@@ -87,7 +117,7 @@ After you configure a chart, you can add it to a dashboard or workbook. By addin
87
117
The Azure Monitor metrics explorer Share menu includes several options for sharing your metric chart.
88
118
89
119
- 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.
120
+
- Select **Copy link** to add a link to your chart to the clipboard.A notification is received when the link is copied successfully.
91
121
-**Send to Workbook** sends your chart to a new or existing workbook.
92
122
- Select **Pin to Grafana** to pin your chart to a new or existing Grafana dashboard.
0 commit comments