Skip to content

Chapter 7 of 11

Monitoring and Logging with Azure Monitor

Collect platform metrics, logs, traces, alerts, dashboards, and application telemetry.

42 minutes 10 quick checksBy Subha Prasad
Lesson 7 of 11Course navigation

Lesson content

Read, practise, then check your understanding

Monitoring and Logging with Azure Monitor

Azure Monitor is the platform for collecting, analyzing, visualizing, and acting on telemetry. Metrics provide efficient numeric time series, Log Analytics stores queryable logs, and Application Insights adds application performance, dependency, trace, and user telemetry.

Core ideas

  • A diagnostic setting routes supported platform logs and metrics to destinations such as Log Analytics, Storage, or Event Hubs.
  • Kusto Query Language (KQL) transforms and analyzes records in a Log Analytics workspace.
  • Metric alerts evaluate numeric series; log-search alerts evaluate query results.
  • Application Insights supports distributed tracing and application service-level indicators.

Design and operating model

Define user-centered objectives, instrument applications, enable resource diagnostics, choose workspace boundaries, set retention, and build actionable alert rules. Each alert needs an owner, severity, routing, runbook, and recovery condition. Use workbooks or dashboards for shared operational views.

Example

AppRequests
| where TimeGenerated > ago(30m)
| summarize Requests=count(),
            Failures=countif(Success == false),
            P95=percentile(DurationMs, 95)
  by bin(TimeGenerated, 5m)
| order by TimeGenerated asc

Run examples in a disposable training subscription. Replace names, Regions, identifiers, scopes, sizes, and policies with reviewed values, and confirm current Azure CLI and service requirements before production use.

Production guidance

  • Control ingestion with useful schema and sampling, but preserve security and audit evidence.
  • Avoid alerting on every transient event; use sustained symptoms and dependency risks.
  • Monitor the monitoring path itself, including agent health, diagnostic settings, action groups, and retention.

The chapter quiz follows the lesson and checks both service vocabulary and architecture decisions.

Knowledge check

Answer every question correctly to complete this chapter.

Which statement correctly describes Azure Monitor?
Which term matches this explanation: Azure's platform for collecting, analyzing, visualizing, and acting on telemetry.
Which statement correctly describes Log Analytics workspace?
Which term matches this explanation: A store and query boundary for log and trace data using Kusto Query Language.
Which statement correctly describes Application Insights?
Which term matches this explanation: Application performance monitoring within Azure Monitor.
Which statement correctly describes metric alert?
Which term matches this explanation: An alert rule evaluating numeric time-series measurements.
Which statement correctly describes diagnostic setting?
Which term matches this explanation: Configuration routing platform logs and metrics to destinations.

0 of 10 checks passed

Your progress is saved on this device.