Course contentsShow
← Cloud and Infrastructure
Lesson 675 of 2,98912. Monitoring FoundationsFree lesson

Azure Monitor Metrics and Alerts

Working with Azure Monitor metrics, metric namespaces, and creating alert rules with action groups.

Azure Monitor Metrics and Alerts

You'll learn how Azure Monitor organizes metrics, creates custom alert rules, and triggers automated responses through action groups.

What Are Azure Monitor Metrics?

Azure Monitor collects metrics (numeric time-series data) from your Azure resources automatically. Think of it like a dashboard in your car: CPU percentage is your speedometer, memory usage is your fuel gauge, and disk I/O is your RPM meter—all continuously updating.

Metric Namespaces

Azure organizes metrics into namespaces to avoid naming collisions. The format follows ResourceProvider/ResourceType, like:

  • Microsoft.Compute/virtualMachines for VM metrics
  • Microsoft.Storage/storageAccounts for storage metrics
  • Custom namespaces for your application metrics: CustomApp/Orders

Within each namespace, individual metrics exist (e.g., Percentage CPU, Available Memory Bytes). This structure mirrors what you learned with CloudWatch namespaces, but Azure's naming is more hierarchical.

Creating Alert Rules

Alert rules in Azure Monitor evaluate metrics against conditions you define:

  1. Scope: Which resource(s) to monitor
  2. Condition: Threshold and comparison operator (greater than, less than)
  3. Evaluation frequency: How often to check (1, 5, 15 minutes)
  4. Aggregation: Sum, average, min, max, count over time

When a condition triggers, the alert enters a "Fired" state (similar to CloudWatch's ALARM state).

Action Groups

Action groups define what happens when an alert fires—the notifications and automated responses. One action group can contain multiple actions:

  • Send email/SMS notifications
  • Trigger webhooks to external systems
  • Execute Azure Functions or Logic Apps
  • Create ITSM tickets automatically

You can reuse the same action group across multiple alert rules, making management efficient.

Key Takeaway: Azure Monitor metrics use namespaces for organization, alert rules define monitoring conditions, and action groups execute automated responses—creating a complete monitoring pipeline from detection to action.