Azure Monitor: A Beginner’s Guide to Metrics, Logs and Alerts

Share

Azure Monitor product page with the tagline Gain end-to-end observability for your applications, infrastructure, and network and a Get started with Azure button

Azure Monitor, the service that watches everything you run in Azure. Screenshot from azure.microsoft.com.

Azure Monitor is the built-in monitoring service in Microsoft Azure, opened from the Azure portal: it collects numbers and logs from your apps, servers and cloud services, then charts them and alerts you when something goes wrong. There is nothing to install for the basics.

Every Azure resource reports to it from the moment you create it. Basic performance charts and the activity log are free, with no setup. You pay only when you send in extra data, such as detailed logs from your servers or apps.

It also watches servers in your own building or in other clouds through Azure Arc, and it monitors AI agents built in Microsoft Foundry and Copilot Studio.

Below: what Azure Monitor collects, the tools you will use, how alerts work, a step-by-step first alert, and what is free versus paid. Questions? Reach out to us directly.

Made by
Microsoft
Setup
Built into Azure
Free
Platform metrics, activity log
Query language
KQL

What Is Azure Monitor?

Azure Monitor is the one place to see how everything in Azure is doing. Microsoft calls it an observability service, which simply means it helps you see inside your systems: are they up, are they fast, and what went wrong when they failed.

It does four jobs. It collects data, stores it, lets you chart and search it, and acts on it with alerts or automatic scaling. Microsoft Defender for Cloud and Microsoft Sentinel use the same data platform, so the skills carry over.

You reach it by searching for Monitor in the Azure portal, but most resources also show their own monitoring charts right on their Overview page.

New to Azure itself? Start with our guide to Microsoft Azure, which explains subscriptions, resource groups and the free account.

Metrics, Logs and Traces Explained

Azure Monitor works with three kinds of data. Most beginners only need the first two to start.

The Data Azure Monitor Collects
From Microsoft Learn. Checked October 2026
Type What it is Example Kept for
Metrics Numbers measured at regular intervals, light and near real time CPU percentage every minute 93 days for platform metrics
Logs Detailed records of events, stored like rows in a database A failed sign-in, with time, user and reason 31 days included, up to 12 years in total
Traces The path one request takes through every part of an app A web page call that hits an API and a database Same as logs

Behind the scenes there are two stores. A Log Analytics workspace holds logs and traces, which you search with KQL (Kusto Query Language). An Azure Monitor workspace holds Prometheus and OpenTelemetry metrics, open standards for metrics that many apps already use, which you search with PromQL. The names are confusingly close, but they are separate things.

Metrics explorer shows 30 days per chart. Platform metrics are kept for 93 days, so pan the chart to see older data, or send metrics to a Log Analytics workspace to keep them longer.

Where Azure Monitor Gets Its Data

AUTOMATIC

Azure resources

Every resource sends platform metrics and an activity log on its own. Add a diagnostic setting to also send its detailed resource logs to a workspace.

AGENT

Virtual machines and servers

Install the Azure Monitor Agent and choose what to collect with data collection rules. Servers outside Azure connect through Azure Arc.

APPS

Applications

Application Insights collects requests, errors and response times from your app code using OpenTelemetry, an open standard.

CONTAINERS

Kubernetes

Container insights and Azure Monitor managed service for Prometheus watch your clusters, pods and containers.

IDENTITY

Microsoft Entra ID

Sign-in and audit logs from Entra ID can flow in, so you can alert on unusual account activity.

CUSTOM

Your own data

Send custom logs from any app or script with the Logs Ingestion API.

Following an older tutorial?

Guides from before 2024 tell you to install the Log Analytics agent (also called MMA or OMS). Microsoft retired it in August 2024. Use the Azure Monitor Agent instead, which collects the same kinds of data through data collection rules.

Key Azure Monitor Tools

These screenshots come from Microsoft Learn and show the tools you will use most.

METRICS

Charts on every resource

Open any Azure resource and its Overview page already shows key charts, such as traffic and response time for a storage account. Metrics explorer lets you build your own charts and pin them to a dashboard.

Azure portal overview page for a storage account with the Monitoring tab showing key metric charts for egress, ingress and latency
LOGS

Log Analytics

Log Analytics is where you search logs. Simple mode lets you filter with clicks, and KQL mode lets you write queries like the one in the screenshot, which counts failed operations.

KQL is also used by Microsoft Sentinel and Defender, so learning it pays off twice.

Azure Monitor Log Analytics in KQL mode with a query counting failed operations and a results table of operation names, failure counts and impacted users
APPS

Application Insights

Application Insights watches your web apps: page views, slow requests and errors. The application map draws every part of your app and how they call each other, with failure rates on each link.

It also tracks AI agents, including token use, response time and errors.

Application Insights application map in the Azure portal showing an app's components, call counts, response times and failure rates between services
SERVERS

VM insights

VM insights shows CPU, memory, disk and network for all your virtual machines at once, so you can spot the one that is struggling without opening each machine.

Azure Monitor VM insights Performance view with charts of CPU utilization and available memory across virtual machines
REPORTS

Workbooks and dashboards

Workbooks are interactive reports that mix charts, tables and text. Start from Microsoft’s gallery of ready-made workbooks, or build your own.

Prefer Grafana? Azure Monitor has Grafana dashboards in the portal, and Azure Managed Grafana for full Grafana.

Azure Monitor workbook combining a honeycomb health map, line charts, bar charts and colored tables of virtual machine data
SCALE

Autoscale

Add or remove servers automatically based on load, a schedule, or both, so you pay for capacity only when you need it.

AI

Azure Copilot Observability Agent

Ask questions about your systems in plain words, and let the agent investigate alerts and group related ones into a single issue.

ALERTS

Smart alerts

Dynamic thresholds learn what normal looks like for a metric, and smart detection flags odd behavior in your apps.

NETWORK

Network Watcher

Tools for checking network paths, connections and traffic between your Azure resources.

How Azure Monitor Alerts Work

An alert rule has three parts: what to watch (the scope, such as one VM), which signal (such as CPU percentage), and the condition (such as above 80% on average). When the condition is met, the alert fires and runs an action group.

Diagram of Azure Monitor alerts: Azure resources send telemetry, alert rules check a signal against a condition, and fired alerts trigger action groups that send notifications or run actions
How alerts flow: resources send data, alert rules check it, and fired alerts trigger action groups. Diagram from Microsoft Learn.

An action group is a reusable list of who to tell and what to do: send an email or text message, call a phone, push to the Azure mobile app, or run automation such as a Logic App. Create one once and use it on many alert rules.

Step by Step: Create Your First Alert

This example emails you when a virtual machine’s CPU stays high. The same steps work for any resource and signal.

1 Sign in to the Azure portal at portal.azure.com, search for Monitor and open it.

2 Select Alerts, then Create, then Alert rule.

Azure portal Monitor Alerts page with numbered steps showing Monitor, then Alerts, then Create and Alert rule
Open Monitor, select Alerts, then Create and Alert rule. Image from Microsoft Learn.

3 On the Scope tab, pick the resource you want to watch, such as your virtual machine, and select Apply.

4 On the Condition tab, choose a signal, such as Percentage CPU.

5 Set the logic: for example, greater than 80, averaged over 5 minutes.

Azure Monitor alert rule Condition tab with a list of popular signals such as Percentage CPU, Available Memory Bytes and Custom log search
Pick a signal on the Condition tab. Popular ones are listed first. Image from Microsoft Learn.

6 On the Actions tab, select Create action group and add an email notification with your address.

7 On the Details tab, name the rule and choose a severity, from 0 (critical) to 4 (verbose).

8 Select Review + create, then Create. The rule starts checking right away.

Azure Monitor alert rule Actions tab with options to select or create an action group, showing an email action group
Attach an action group so the alert reaches you. Image from Microsoft Learn.

Is Azure Monitor Free?

Partly. The basics cost nothing, and you pay mainly for the log data you send in and keep. Here is how it splits.

What Is Free and What Is Billed
From azure.microsoft.com/pricing and Microsoft Learn. Checked October 2026
Item Cost
Platform metrics and the activity log Free, collected automatically
Log ingestion (Analytics plan, pay-as-you-go) First 5 GB a month per billing account free, then billed per GB
Log retention 31 days included with Analytics logs, 90 days for Application Insights data, longer is billed
Basic and Auxiliary log plans Cheaper per GB to ingest, but you pay per GB scanned when you query
Commitment tiers Daily volume discounts for heavy users, starting at 100 GB a day
Alert rules and notifications Billed per rule and per notification type, such as text messages

Watch your log volume. Logs are where surprise bills come from. Only collect what you will use, and check Usage and estimated costs in your Log Analytics workspace each month. Current prices are on the Azure Monitor pricing page, and our guide to reducing Azure costs has more ways to save.

Frequently Asked Questions

What is the difference between Azure Monitor and Application Insights?
Application Insights is part of Azure Monitor. Azure Monitor covers everything you run in Azure, while Application Insights focuses on your application code: requests, errors, response times and how the parts of your app call each other.
What is KQL?
KQL, or Kusto Query Language, is the language you use to search logs in Log Analytics. It reads top to bottom, with each line filtering or summarizing the results of the line before. Microsoft Sentinel, Microsoft Defender and Azure Data Explorer use it too.
Can Azure Monitor watch servers outside Azure?
Yes. Connect servers in your own building or in other clouds to Azure with Azure Arc, then install the Azure Monitor Agent. They show up next to your Azure resources with the same charts, logs and alerts.
How long does Azure Monitor keep my data?
Platform metrics are kept for 93 days. Logs in a Log Analytics workspace keep 31 days of analytics retention in the ingestion price, which you can extend to two years, and total retention can go up to 12 years at a lower cost.
Can Azure Monitor alerts reach my phone?
Yes. An action group can send a text message, place a voice call, or push a notification to the Azure mobile app, as well as send email.
Does Azure Monitor work with Grafana?
Yes. You can view Grafana dashboards directly in the Azure portal, or use Azure Managed Grafana, a fully managed Grafana service that reads Azure Monitor metrics and logs.

Support and Community

More Windows software guides: What Is Microsoft Azure? · Azure AI Search · Azure PowerShell · Azure PowerShell Commands · Reducing Azure Costs · Azure Data Studio Replacements


Discover more from Windows Mode

Subscribe to get the latest posts sent to your email.