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/analyze-metrics.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,8 @@ Use the time picker to change the **Time range** for your data, such as the last
120
120
121
121
In addition to changing the time range with the time picker, you can pan and zoom by using the controls in the chart area.
122
122
123
+
## Interactive Chart features
124
+
123
125
### Pan across metrics data
124
126
125
127
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.
Copy file name to clipboardExpand all lines: articles/azure-monitor/essentials/metrics-explorer.md
+21-16Lines changed: 21 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,21 +12,24 @@ ms.reviewer: priyamishra
12
12
13
13
---
14
14
15
-
# Metrics explorer with PromQL (Preview) (Preview)
15
+
# Metrics explorer with PromQL (Preview)
16
16
17
17
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.
18
18
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 isn't limited to Azure Monitor workspaces. You can query metrics from any Azure resource using the builder and selecting the appropriate scope.
20
20
21
21
For more information on PromQL, see [Querying Prometheus](https://prometheus.io/docs/prometheus/latest/querying/basics/).
22
22
23
23
24
24
## Create a chart
25
25
26
26
The chart pane has two options for charting a metric:
27
-
- Add with builder
28
27
- Add with editor.
28
+
- Add with builder.
29
29
30
+
Adding a chart with the editor allows you to enter a PromQL query to retrieve metrics data. The editor provides syntax highlighting and intellisense for PromQL queries. Currently, queries are limited to the metrics stored in an Azure Monitor workspace.
31
+
32
+
Adding a chart with the builder allows you to select metrics from any of your Azure resources. The builder provides a list of metrics available in the selected scope. You can select the metric, aggregation type, and chart type from the builder.
30
33
31
34
### Create a chart with the editor and PromQL
32
35
@@ -35,18 +38,22 @@ To add a metric using the query editor,
35
38
1. Select **Add metric** and select **Add with editor** from the dropdown.
36
39
37
40
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.
41
+
1. Enter a PromQL query in the editor field, or select a single metric from **Metric** dropdown.
39
42
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
43
41
44
:::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
45
43
46
### Create a chart with the builder
47
+
44
48
To add a metric with the builder,
49
+
45
50
1. Select **Add metric** and select **Add with builder** from the dropdown.
46
-
1. Select a scope. This can be an Azure resource in your subscription.
51
+
1. Select a scope. The scope can be any Azure resource in your subscription.
47
52
1. Select a metric from the drop-down list.
48
53
1. Select the aggregation type from the dropdown list.
49
54
55
+
For more information on the selecting scope, metrics, and aggregation, see [Analyze metrics](/azure/azure-monitor/essentials/analyze-metrics#set-the-resource-scope).
56
+
50
57
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.
51
58
52
59
:::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." :::
@@ -79,30 +86,28 @@ To remove a chart, select the **...** options icon and select **Remove**.
79
86
80
87
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.
81
88
82
-
Set the time range for the chart by selecting the time range dropdown list in the toolbar.
89
+
Set the time range for the chart by selecting the time range dropdown list in the toolbar. Select a predefined time range or set a custom time range.
83
90
84
-
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.
91
+
Time grain is 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 or more frequent 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.
85
92
86
93
87
94
:::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." :::
88
95
89
-
## Configure the time range
96
+
For more information, see [Analyze metrics](/azure/azure-monitor/essentials/analyze-metrics#configure-the-time-range) .
90
97
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.
92
98
93
-
For more information, see [Analyze metrics](aazure/azure-monitor/essentials/analyze-metrics#configure-the-time-range) .
99
+
## Chart features
94
100
101
+
You can interact with the chart to gain deeper insights into your metrics data.
95
102
96
-
## Chart features
97
-
You can interact with the chart in several ways to gain insights into your metrics data.
103
+
These features includes the following features:
98
104
99
-
This includes the following features:
100
-
- Zoom-in. Select and drag to zoom in on a specific area of the chart.
105
+
- Zoom-in. Select and drag to zoom in on a specific area of the chart.
101
106
- Pan. Shift chart left and right along the time axis.
102
107
- Change chart settings such as chart type, Y-axis range, and legends.
103
108
- Save and share charts
104
109
105
-
For mor information on chart features, see [Analyze metrics](aazure/azure-monitor/essentials/analyze-metrics) .
106
-
110
+
For more information on chart features, see [Interactive chart features](/azure/azure-monitor/essentials/analyze-metrics#interactive-chart-features) .
### Can I view my Prometheus metrics in Azure Monitor metrics explorer?
10
10
11
-
Metrics explorer in Azure Monitor doesn't currently support visualizing Prometheus metric data. Consider using [Azure Managed Grafana](../../managed-grafana/index.yml) to visualize your Prometheus metrics.
11
+
Metrics explorer with PromQL supports visualizing Prometheus metrics data using PromQL. To use the Metrics Explorer with promQL support, select the **Metrics** menu item from any Azure Monitor workspace in the Azure portal. For more information, see [Metrics explorer with PromQL (Preview)](../essentials/metrics-explorer.md).
0 commit comments