What is Azure Monitor? Connect metrics, logs, and traces to alerts
Azure Monitor is the observability service for collecting, analyzing, and acting on telemetry from Azure and hybrid environments. Metrics help detect unusual behavior quickly, logs add event context, and distributed traces show how a request moves across services. Together, they can help narrow “the service is slow” to a specific component. The key design choice is not to send everything everywhere, but to match each operational question with the right signal, store, and query.
What is Azure Monitor? Connect metrics, logs, and traces to alerts
Azure Monitor is the observability service for collecting, analyzing, and acting on telemetry from Azure and hybrid environments. Metrics help detect unusual behavior quickly, logs add event context, and distributed traces show how a request moves across services. Together, they can help narrow “the service is slow” to a specific component. The key design choice is not to send everything everywhere, but to match each operational question with the right signal, store, and query.
What does Azure Monitor do?
Azure Monitor brings telemetry from virtual machines, networks, managed services, and applications into analysis, visualization, and alerting experiences. Azure portal resource pages provide an overview and links to deeper monitoring tools. Application Insights is Azure Monitor’s application performance monitoring feature; in supported scenarios, it can use OpenTelemetry (OTel) to collect requests, dependencies, exceptions, and related application telemetry.
Azure Monitor is not one store where all data is saved and queried in the same way. Azure Monitor Metrics and Azure Monitor Logs generally use separate data platforms and analysis tools. Monitoring experiences or “insights” build scenario-specific views on top of those foundations.
What questions do metrics, logs, traces, and events answer?
Metrics are numbers collected at regular intervals. Changes in CPU utilization or HTTP error rate can reveal an emerging problem quickly or trigger an alert when a threshold is crossed. A metric usually does not explain why the value changed.
Logs are timestamped records of events, with structured fields or text. Resource logs, application logs, and platform activity logs can have different sources and collection paths. Logs help investigate which request failed and which dependency was called. Distributed traces connect events related to a request so you can see where latency occurs across an API, database, and external service. Events, such as a deployment or configuration change, can add context about what changed near the time of a problem.
For example, when users report a slow API, use metrics to find when and how broadly it started, traces to locate a slow dependency for a request, and related logs to inspect errors and input conditions. These signals complement one another. Without correlation identifiers and consistent timestamps, traces and logs may be difficult to connect.
How do the Metrics and Logs stores differ?
Azure Monitor Metrics is optimized for inspecting numerical time-series data. Standard platform metrics emitted automatically by Azure resources are available without separate collection setup and, according to Microsoft documentation, have no ingestion or storage charge. Metrics sent to an Azure Monitor workspace, such as Prometheus or OpenTelemetry metrics, can use a different collection pipeline and query tool.
Azure Monitor Logs typically stores data in a Log Analytics workspace and supports search and aggregation with Kusto Query Language (KQL). A workspace is an Azure resource that affects data retention, access boundaries, cost, and operations. An Azure Monitor workspace and a Log Analytics workspace have similar names but are different resource types: the former is used for Prometheus and OpenTelemetry metrics scenarios, while the latter is primarily for logs and trace analysis. Choose tools for the data: Metrics Explorer or PromQL for metrics; Log Analytics with KQL for logs.
How do you collect data and route it to a destination?
Standard platform metrics from Azure resources are usually collected automatically. Depending on the resource and log category, diagnostic settings export resource logs to a Log Analytics workspace, Storage account, or Event Hubs. Virtual machines and Kubernetes may require the Azure Monitor agent, a service-specific insights experience, or a collection pipeline.
For supported collection paths, a Data Collection Rule (DCR) centrally defines which data to collect, how to handle its schema, optional transformations, and destinations. A DCR is configuration in the control plane, not the destination through which telemetry flows. A portal experience such as VM insights can create and manage DCRs and their associations; you do not need to edit a DCR directly from the start. Work with DCRs directly when you need shared collection policy, infrastructure-as-code management, or control over fields and destinations.
When changing collection, review the source, diagnostic categories, destination, workspace tables, retention, and required permissions together. Collecting only needed categories and choosing destinations deliberately can reduce unnecessary data and cost while preserving useful diagnostic evidence.
How should you analyze and visualize monitoring data?
Metrics Explorer is a starting point for comparing and aggregating time-series metrics and looking at thresholds or trends. In Log Analytics, Simple mode helps start with filters and aggregations; KQL mode lets you specify time and resource scope, tables, and query conditions for deeper investigation. Query results can feed alert rules or workbooks.
Azure Workbooks combine text explanations, log queries, metrics, parameters, and visualizations in an interactive report. They are useful for sharing an investigation process or a service health view with a team. A dashboard is often better for a quick view of current values; a workbook can include those values together with explanatory text and a path for further analysis.
For an order API, for instance, a workbook might place the error-rate metric alongside request volume, dependency latency, and deployment events in the same time window. This is an illustrative design, not a claim that a specific service provides this exact view by default.
How do alerts lead to a useful response?
An alert rule combines the resource to monitor, a signal such as a metric or log, and a condition. When the condition is met, an alert is created and its associated action group can send email, SMS, or push notifications, or start an automated workflow. Alert processing is separate from deciding when to create an alert. An alert processing rule can add action groups, suppress notifications, or apply filters and schedules to alerts that have already fired.
For example, create a rule to notify an owner when the server-error rate of an API exceeds a threshold for a defined period. A threshold set too low can repeatedly notify on normal variation; one set too high may detect an incident late. Select the expected signal and evaluation interval, confirm the recipient can act, check whether automation is safe, and validate how the alert changes after the condition clears. Metric alerts and log search alerts can differ in evaluation and latency, so choose the alert type for the use case.
How do you manage cost, retention, and access?
Azure Monitor uses consumption-based pricing. Some default features, including standard platform metrics and Activity Log collection, do not incur direct charges. Other costs can depend on the volume of logs ingested into Log Analytics, retention duration, exports, and Prometheus metric ingestion and querying. Microsoft documentation notes that log ingestion is a large part of Azure Monitor costs for many customers. Exact pricing depends on region, plan, and data type; check current pricing and cost analysis for your deployment.
Do not turn off useful security or operational evidence just to reduce volume. First look for duplicate diagnostic categories, unnecessarily verbose logs, accidental repeated collection, and excessive retention. Workspace separation trades off team permissions, data sensitivity, cost tracking, retention needs, and cross-resource queries. Minimize personal data and secrets before collection, then restrict workspace access to people who need it.
What sequence should you use when getting started?
Write down the operational question. For example: “When order API failures increase, which requests and dependencies were affected, and can we find out within ten minutes?”
Match signals to the question: metrics for trends and thresholds, logs for detailed causes, and traces for request paths.
Design collection, workspace or metrics destination, access boundaries, and retention for each data type. Do not enable every log category by default.
Build a dashboard or workbook that links signals by the same time range and service identifier.
Connect actionable alerts to an action group; verify the notifications are useful and not excessive during normal variation, failure, and recovery.
Review ingestion volume, retention, alert state, and destination errors periodically to confirm the data answers real operational questions.
This is a monitoring-design checklist, not a fixed sequence of portal screens. Resource support and portal workflows vary by Azure service; check the documentation for the resource you monitor.
References
[Microsoft Learn: Azure Monitor overview](https://learn.microsoft.com/en-us/azure/azure-monitor/fundamentals/overview)
[Microsoft Learn: Azure Monitor data platform](https://learn.microsoft.com/en-us/azure/azure-monitor/fundamentals/data-platform)
[Microsoft Learn: Azure Monitor Metrics](https://learn.microsoft.com/en-us/azure/azure-monitor/metrics/data-platform-metrics)
[Microsoft Learn: Log Analytics overview](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/log-analytics-overview)
[Microsoft Learn: Application Insights and OpenTelemetry](https://learn.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview)
[Microsoft Learn: Azure Monitor alerts overview](https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-overview)
[Microsoft Learn: Action groups](https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/action-groups)
[Microsoft Learn: Alert processing rules](https://learn.microsoft.com/en-us/azure/azure-monitor/platform/alerts-action-rules)
[Microsoft Learn: Azure Workbooks](https://learn.microsoft.com/en-us/azure/azure-monitor/visualize/workbooks-overview)
[Microsoft Learn: Data collection rules (DCRs)](https://learn.microsoft.com/en-us/azure/azure-monitor/data-collection/data-collection-rule-overview)
[Microsoft Learn: Azure Monitor cost and usage](https://learn.microsoft.com/en-us/azure/azure-monitor/fundamentals/cost-usage)
Microsoft Learn documentation was checked on 2026-11-20. Collection support, preview features, retention policies, and pricing can change; check the current documentation for the target resource and region when implementing.