Lesson 1 of 5 Monitoring Resources with Azure Monitor

Interpreting Metrics in Azure Monitor

This lesson explains platform metrics, Metrics explorer, aggregations and dimensions.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe platform metrics and their retention.
  • Choose the aggregation that answers a monitoring question.
  • Explain how filtering and splitting by dimension reveal problems.

Platform metrics

Metrics are numeric values collected at regular intervals and stored in a time-series database. Platform metrics are emitted by Azure resources without any configuration or cost, usually at one-minute granularity, and kept for 93 days. Examples are a VM's Percentage CPU, Network In Total and OS Disk IOPS Consumed Percentage; a storage account's Transactions, Availability and Success E2E Latency; and a load balancer's Health Probe Status. Custom metrics and guest OS metrics, such as memory used inside a VM, are sent by the Azure Monitor Agent or by applications.

Sort into groups

Platform metric or guest data?

Exam skills 5.1.1

Decide whether each value arrives as a platform metric with no configuration, or needs the Azure Monitor Agent.

Log in to try this activity Interactive activities are free with an account.

Metrics explorer

Metrics explorer, opened from Azure Monitor or a resource's Metrics page, charts one or more metrics for a scope. Each chart has a time range, a time granularity (the interval each point summarizes) and an aggregation. The aggregations are explained below, and the right one depends on the question being asked.

AggregationMeaningGood for
AverageMean of the values in each intervalTypical utilization, such as CPU
Max / MinHighest or lowest value in each intervalPeaks and saturation that averages hide
SumTotal of all values in each intervalCounts of events, such as transactions or bytes
CountNumber of measurements in each intervalHow many samples or instances reported

Many metrics have dimensions, such as a storage account's API name and response type, or a scale set's VM name. Filtering keeps only some dimension values, and splitting draws one line per value, which reveals, for example, that only one scale set instance is saturated or that most failed transactions are throttling errors. Charts can be saved to dashboards and workbooks, and a chart's New alert rule button creates a metric alert with the same settings.

The following diagram splits a scale set's average CPU by VM, which reveals one overloaded instance.

Why an average CPU of 40% hides a problem. Splitting the scale set's Percentage CPU by VM name shows one instance at 100% and four at about 25%. An alert on the Maximum aggregation, or split by the VM dimension so each instance is evaluated separately, catches the saturated VM.
The scenario is illustrative.
Scenario questions

Choosing the aggregation

Exam skills 5.1.1

Choose the aggregation, filter or split that answers each question.

Log in to try this activity Interactive activities are free with an account.
Worked example

Interpreting a chart

A scale set of five VMs shows average Percentage CPU of 40% in Metrics explorer, yet users report slow responses. Splitting by VM name shows one instance at 100% and four at about 25%. What does this tell you, and how should alerts be configured to catch it?

The average hides a single saturated instance, which suggests uneven load (for example session persistence) or a fault on that VM. Alert on Percentage CPU with the Maximum aggregation, or split the alert by the VM dimension so that each instance is evaluated separately. An alert on the average above 80% would never fire in this situation.

Check yourself

How long are platform metrics kept?

Show answer

93 days.

Exam Tips

Remember for the exam

  • Platform metrics are automatic, free and kept for 93 days.
  • Choose the aggregation for the question: Average for typical, Max for peaks, Sum for totals.
  • Split by a dimension to find the instance or operation causing a problem.
  • Guest OS metrics such as memory need the Azure Monitor Agent.