Skip to content

Commit afb2823

Browse files
committed
wip
1 parent c69d69a commit afb2823

File tree

3 files changed

+32
-65
lines changed

3 files changed

+32
-65
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ Watch the following video for an overview of creating and working with metrics c
2121

2222
> [!VIDEO https://www.microsoft.com/videoplayer/embed/RE4qO59]
2323
24+
## Create a metric chart using PromQL
25+
26+
You can now create charts using Prometheus query language (PromQL) for metrics store in an Azure Monitor workspace. For more information, see [Metrics explorer with PromQL (Preview)](./metrics-explorer.md).
27+
2428
## Create a metric chart
2529

2630
You can open metrics explorer from the **Azure Monitor overview** page, or from the **Monitoring** section of any resource. In the Azure portal, select **Metrics**.
-15.6 KB
Loading

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

Lines changed: 28 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.reviewer: priyamishra
1616

1717
Metrics Explorer with PromQL (Preview) allows you to analyze and visualize platform metrics, and use Prometheus query language (PromQL) to query metrics stored in an Azure Monitor workspace.
1818

19-
Metrics explorer with PromQL (Preview) is available from the **Metrics** menu item of any Azure Monitor workspace in the Azure portal, but is not limited to Azure Monitor workspaces. You can query metrics from any Azure resource by selecting the appropriate scope.
19+
Metrics explorer with PromQL (Preview) is available from the **Metrics** menu item of any Azure Monitor workspace in the Azure portal, but is not limited to Azure Monitor workspaces. You can query metrics from any Azure resource by selecting the appropriate scope.
2020

2121
For more information on PromQL, see [Querying Prometheus](https://prometheus.io/docs/prometheus/latest/querying/basics/).
2222

@@ -27,36 +27,40 @@ The chart pane has two options for charting a metric:
2727
- Add with builder
2828
- Add with editor.
2929

30+
31+
### Create a chart with the editor and PromQL
32+
33+
To add a metric using the query editor,
34+
35+
1. Select **Add metric** and select **Add with editor** from the dropdown.
36+
37+
1. Select a **Scope** from the dropdown list. This scope is the Azure Monitor workspace where the metrics are stored.
38+
1. Enter a PromQL query in the editor field, or select an sinmge metric from **Metric** dropdown.
39+
1. 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.
40+
41+
:::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." :::
42+
3043
### Create a chart with the builder
3144
To add a metric with the builder,
3245
1. Select **Add metric** and select **Add with builder** from the dropdown.
33-
1. Select a scope. The scope is the Azure monitor workspace where the metric is stored.
46+
1. Select a scope. This can be an Azure resource in your subscription.
3447
1. Select a metric from the drop-down list.
48+
1. Select the aggregation type from the dropdown list.
3549

3650
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.
3751

3852
:::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." :::
3953

40-
### Create a chart with the editor and PromQL
41-
42-
To add a metric using the editor,
43-
1. Select **Add metric** and select **Add with editor** from the dropdown.
44-
1. Select a **Scope** from the dropdown list/
45-
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.
46-
47-
:::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." :::
48-
4954

5055
## Multiple metrics and charts
5156
Each workspace can host multiple charts with each chart containing multiple metrics.
5257

5358
### Add a metric
5459

5560
Add multiple metrics to the chart by selecting **Add metric**. Use either the builder or the editor to add metrics to the chart.
56-
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.
5761

5862
> [!NOTE]
59-
> 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.
63+
> Running both the code editor and query builder on the same chart is not supported in the Preview release of Metrics explorer and may result in unexpected behavior.
6064
6165

6266
### Add a new chart
@@ -82,64 +86,23 @@ Time grain refers to the frequency of sampling and display of the data points on
8286

8387
:::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." :::
8488

85-
## Pan across metrics data
86-
87-
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.
88-
89-
:::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.":::
90-
91-
92-
## Zoom into metrics data
93-
94-
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.
95-
96-
97-
:::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.":::
98-
99-
## Customize the chart
100-
101-
Customize the chart by selecting the gear-wheel icon in the toolbar.
102-
103-
- **Chart title**: Change the title of the chart.
104-
- **Chart type**: Change the chart type to line, area, bar, or scatter.
105-
- **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.
106-
- **Legends**: Position, show or hide the legend, labels, and hover card for the chart.
107-
- **Query settings, Scrape interval**: Set the prometheus query settings. The default is 1 minute.
108-
:::image type="content" source="./media/metrics-explorer/chart-settings.png" lightbox="./media/metrics-explorer/chart-settings.png" alt-text="A Screenshot showing the chart settings blade.":::
109-
110-
111-
## Save and share charts
112-
113-
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.
114-
115-
- To pin a configured chart to a dashboard, in the upper-right corner of the chart, select Save to dashboard > Pin to dashboard.
116-
- To save a configured chart to a workbook, in the upper-right corner of the chart, select Save to dashboard > Save to workbook.
117-
118-
:::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.":::
119-
120-
The Azure Monitor metrics explorer Share menu includes several options for sharing your metric chart.
121-
122-
- Use the **Download to Excel** option to immediately download your chart.
123-
- Select **Copy link** to add a link to your chart to the clipboard.A notification is received when the link is copied successfully.
124-
- **Send to Workbook** sends your chart to a new or existing workbook.
125-
- Select **Pin to Grafana** to pin your chart to a new or existing Grafana dashboard.
126-
127-
:::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.":::
128-
129-
## Supported PromQL functions
130-
131-
89+
## Configure the time range
13290

133-
{TBD}
91+
To set the time range for the chart, use the time range picker in the toolbar. The time range picker allows you to select a predefined time range or set a custom time range. The time range picker also allows you to set the time grain for the chart. The time grain is the frequency of sampling and display of the data points on the chart. The time grain is set to automatic by default. The automatic setting selects the best time grain based on the time range selected.
13492

93+
For more information, see [Analyze metrics](aazure/azure-monitor/essentials/analyze-metrics#configure-the-time-range) .
13594

13695

96+
## Chart features
97+
You can interact with the chart in several ways to gain insights into your metrics data.
13798

138-
## Limitations
99+
This includes the following features:
100+
- Zoom-in. Select and drag to zoom in on a specific area of the chart.
101+
- Pan. Shift chart left and right along the time axis.
102+
- Change chart settings such as chart type, Y-axis range, and legends.
103+
- Save and share charts
139104

140-
The metrics explorer for Azure Monitor workspace is in preview and has some limitations.
141-
- The metrics explorer supports up to 10 metrics per chart. <<<<<<>>>>>>>
142-
- The metrics explorer doesn't support running both the code editor and query builder on the same chart.
105+
For mor information on chart features, see [Analyze metrics](aazure/azure-monitor/essentials/analyze-metrics) .
143106

144107

145108

0 commit comments

Comments
 (0)