What is Azure Monitor?
Azure Monitor is the central service for collecting, analyzing, and acting on telemetry from your Azure resources.
It provides a single pane of glass to track performance, diagnose issues, and optimize your workloads.
Metrics in Azure Monitor
-
Numerical data points collected at regular intervals.
-
Examples: CPU %, memory usage, disk IOPS, network throughput.
-
Stored in a time-series database (great for graphs & dashboards).
-
Near real-time (granularity can be as fine as 1 minute).
Logs in Azure Monitor
-
Detailed event and activity data.
-
Examples: who accessed a resource, failed sign-in attempts, application errors.
-
Stored in a Log Analytics Workspace, queried using KQL (Kusto Query Language).
Key Features of Azure Monitor
-
Dashboards: Visualize metrics with charts and graphs.
-
Workbooks: Build interactive reports and analysis views.
-
Insights: Pre-built monitoring for specific services (VM Insights, Container Insights, etc.).
-
Alerts: Trigger notifications or automated actions when thresholds are exceeded.
Confusion Buster 🚨
-
Metrics vs Logs
-
Metrics = fast, numbers, good for performance monitoring.
-
Logs = detailed, searchable records, good for investigation and auditing.
-
-
Exam trap: If the scenario says “real-time CPU utilization monitoring”, answer is Metrics. If it says “query user sign-ins”, answer is Logs in Log Analytics.
Simple Example
An e-commerce company monitors their web app:
-
Metrics: Track request count, response time, and CPU usage.
-
Logs: Record login failures, errors, and audit trail.
-
They configure a dashboard to show CPU over time and set an alert when CPU > 80% for 10 minutes.
Exam Tip
-
If you see “performance numbers”, think Metrics.
-
If you see “search/query historical events”, think Logs.
-
If you see “visualize resource performance”, answer is Azure Monitor Dashboard or Workbook.
What to Expect in the Exam
-
Direct Q: “Which Azure feature provides near real-time data like CPU usage?” → Metrics.
-
Scenario: “Company wants to analyze failed sign-in attempts across 30 days.” → Logs + Log Analytics.
-
Trick Q: “Metrics are stored in Log Analytics Workspace.” (False — metrics are in a time-series DB, logs go to Log Analytics).