Why Performance Tuning Matters
You’ve got visibility, alerts, and dashboards. But when things slow down, or start acting weird, you need deeper data-driven troubleshooting—not guesswork.
Azure Monitor churns through a stream of telemetry, and this post is all about turning that raw data into actionable performance insights. We’ll focus on:
- Navigating and querying Azure Metrics
- Using Log Analytics for correlation and hunting
- Pinpointing performance bottlenecks before alerts fire
Metrics vs Logs: Quick Compare
Feature | Metrics | Logs |
---|---|---|
Granularity | Near real-time | Minutes to 5-minute delay |
Use cases | Threshold-based monitoring | Root cause, correlation |
Billing model | Free for many common signals | Pay-per-GB ingested |
Format | Structured time-series | Semi-structured/full text |
You’ll often use both together metrics raise the flag, logs explain why.
Tools You’ll Use
- Azure Monitor Metrics Explorer
- Log Analytics (KQL)
- Workbooks
- Built-in metrics + diagnostic logs on services like:
- App Services
- AKS
- SQL Database
- Application Gateway
Log Query Examples for Performance Investigation
CPU Bottleneck on VMs
|
|
Web App Latency Analysis
|
|
App Gateway Backend Errors
|
|
Pair these queries with dashboards or surface them in Workbooks for fast visibility during high load.
Metrics Deep Dive: Metrics Explorer
- Go to a resource (e.g. App Service)
- Select ➡️ Monitoring > Metrics
- Choose:
- Signal (e.g. Requests, Response time, 5xx errors)
- Time range, aggregation, and split by dimension
Pin charts directly to your dashboard or export as alert condition.
Use Case: Tuning App Service Performance
Example signals to monitor in tandem:
- CPU Time (metric)
- Server Errors (5xx) (metric or log)
- Exceptions (App Insights log)
- Outgoing dependencies (App Insights + Log Analytics)
Correlate a performance slowdown by stacking DurationMs
, 5xx errors
, and infrastructure metrics in the same workbook.
Bicep Add-On: Log Analytics Query Pack (Preview Feature)
Want to standardise performance queries across environments?
|
|