Lesson 1 of 4 Analyzing Instrumentation

Inspecting Infrastructure Performance Indicators

This lesson explains how to read CPU, memory, disk and network data.

Learning outcomes

After completing this lesson, you will be able to:

  • Apply the USE method.
  • Identify signs of CPU and memory pressure.
  • Recognize disk throttling.
  • Use splitting in Metrics Explorer.

A method for reading indicators

A useful method for any resource is to ask three questions, known as USE: what is its utilization, or how busy is it? What is its saturation, or how much work is queuing? Are there any errors? Utilization alone can mislead, since a resource at 90% that has no queue may be working efficiently, whereas a queue that keeps growing means that demand exceeds capacity.

Time also matters. A short spike is usually normal, whereas a sustained high value is a sign of pressure. Compare the same period on previous days, because many systems have a regular pattern, and check whether a change coincides with a deployment.

The following diagram splits an average CPU of 45% by instance, which reveals one overloaded instance.

What an average CPU of 45% can hide. Split by instance, one of the four instances runs at 100% while the others sit at 25 to 30%, which can happen when traffic is uneven. Adding instances may not help if the load balancer favours one, and a coarser time grain would hide peaks further.
The per-instance values are illustrative and average 45%.
Sort into groups

Utilization, saturation or errors?

Exam skills 5.2.1

Place each observation in the USE method.

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

CPU

CPU percentage shows processing demand. Sustained values above about 80% suggest a need to scale, or to investigate code. An average across instances can hide one instance at 100%, so split by instance. On burstable B-series virtual machines, CPU credits run out, after which performance drops, which can look like an application problem. In Linux, a high load average relative to the core count, and steal time, show saturation or contention.

True or false

Reading CPU

Exam skills 5.2.1

Check how to interpret CPU indicators.

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

Memory

Available memory matters more than used memory, as operating systems use free memory for cache. Low available memory, and continual paging or swapping, indicate pressure. A steady climb over days that resets at each restart suggests a memory leak. In Kubernetes, a container that reaches its limit is killed, and reported as OOMKilled. Memory data for virtual machines needs the Azure Monitor Agent, as host metrics cannot see inside the guest.

Match the pairs

What memory patterns mean

Exam skills 5.2.1

Match each memory observation with its most likely meaning.

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

Disk

Disk performance has several measures. IOPS counts operations per second, and throughput counts bytes per second. Latency shows how long each operation takes, and queue depth shows how many are waiting. Azure disks have limits for each size, and metrics such as Data Disk IOPS Consumed Percentage show when a disk reaches its limit, which is called throttling. High latency with a low percentage consumed points elsewhere, for example to a noisy application pattern. A virtual machine size also sets its own limit, so a large disk on a small machine may still be throttled.

Troubleshooting

Slow disks

Exam skills 5.2.1

Find the most likely cause of each disk performance problem.

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

Network

Network indicators include throughput, measured in and out, latency, retransmissions and dropped packets. Azure load balancers report data path availability and health probe status. A rise in failed connections may be caused by SNAT port exhaustion, which occurs when an application opens many outbound connections, and a NAT gateway or connection reuse addresses it. Network Watcher offers Connection Monitor and traffic analytics for deeper study.

Scenario questions

Network indicators

Exam skills 5.2.1

Interpret network symptoms and choose the fix.

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

Using Metrics Explorer

Metrics Explorer charts any Azure metric. Select a scope, metric and aggregation, such as average, maximum or count. Splitting breaks a line down by a dimension, such as instance, and filtering focuses on one value. Comparing the average with the maximum often reveals one unhealthy instance. VM insights shows performance across machines, with top lists by CPU, memory and disk. The following table recaps the signs of trouble.

ResourceSign of troubleCommon next step
CPUSustained high use on all instancesScale, or profile code
MemoryFalling available memory, or a steady climbLook for a leak; add memory
DiskHigh queue depth or latency; consumed percentage near 100%Choose a larger or faster disk
NetworkRetransmissions, failed connectionsCheck SNAT, limits and routes
Match the pairs

Metrics Explorer techniques

Exam skills 5.2.1

Match each Metrics Explorer technique with what it reveals.

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

Reading a mixed signal

A web tier has four instances. The average CPU chart shows 45%, yet users report slow pages. What should you do next?

Split the CPU metric by instance. An average of 45% can hide one instance at 100%, for example if traffic is uneven. Adding instances may not help if the load balancer is sending too much to one of them. Raising the chart's time grain would hide short peaks further.

Check yourself

Why is available memory more useful than used memory?

Show answer

Operating systems use spare memory for cache, so high use is normal, whereas low available memory indicates pressure.

Exam Tips

Remember for the exam

  • USE: utilization, saturation and errors.
  • Sustained values matter; brief peaks are usually normal.
  • Split metrics by instance to reveal a hidden problem.
  • Consumed percentage metrics show disk throttling.
  • A steady memory climb that resets on restart suggests a leak.