Tutorial: Monitor Azure resources with Azure Monitor
When you have critical applications and business processes relying on Azure resources, you want to monitor those resources for their availability, performance, and operation. This monitoring is provided by Azure Monitor, which is a full stack monitoring service in Azure that provides a complete set of features to monitor your Azure resources in addition to resources in other clouds and on-premises.
In this tutorial, you learn:
- What Azure Monitor is and how it's integrated into the portal for other Azure services
- The types of data collected by Azure Monitor for Azure resources
- Azure Monitor tools used to collect and analyze data
Note
This tutorial describes Azure Monitor concepts and walks you through different menu items. To jump right into using Azure Monitor features, start with Tutorial: Analyze metrics for an Azure resource.
Monitoring data
Azure Monitor data collection
As soon as you create an Azure resource, Azure Monitor is enabled and starts collecting metrics and activity logs. With some configuration, you can gather additional monitoring data and enable additional features. The Azure Monitor data platform is made up of Metrics and Logs. Each collects different kinds of data and enables different Azure Monitor features.
- Azure Monitor Metrics stores numeric data from monitored resources into a time series database. The metric database is automatically created for each Azure subscription. Use metrics explorer to analyze data from Azure Monitor Metrics.
- Azure Monitor Logs collects logs and performance data where they can be retrieved and analyzed in a different ways using log queries. You must create a Log Analytics workspace to collect log data. Use Log Analytics to analyze data from Azure Monitor Logs.
Monitor data from Azure resources
While resources from different Azure services have different monitoring requirements, they generate monitoring data in the same formats so that you can use the same Azure Monitor tools to analyze all Azure resources.
Diagnostic settings define where resource logs and metrics for a particular resource should be sent. Possible destinations are:
- Activity log - Subscription level events that track operations for each Azure resource, for example creating a new resource or starting a virtual machine. Activity log events are automatically generated and collected for viewing in the Azure portal. You can create a diagnostic setting to send the Activity log to Azure Monitor Logs.
- Platform metrics - Numerical values that are automatically collected at regular intervals and describe some aspect of a resource at a particular time. Platform metrics are automatically generated and collected in Azure Monitor Metrics.
- Resource logs - Provide insight into operations that were performed by an Azure resource, for example getting a secret from a Key Vault or making a request to a database. Resource logs are generated automatically, but you must create a diagnostic setting to send them to Azure Monitor Logs.
- Virtual machine guest metrics and logs - Performance and log data from the guest operating system of Azure virtual machines. You must install an agent on the virtual machine to collect this data and send it to Azure Monitor Metrics and Azure Monitor Logs.
Menu options
While you can access Azure Monitor features from the Monitor menu in the Azure portal, Azure Monitor features can be accessed directly from the menu for different Azure services. While different Azure services may have slightly different experiences, they share a common set of monitoring options in the Azure portal. This includes Overview and Activity log and multiple options in the Monitoring section of the menu.
Overview page
The Overview page includes details about the resource and often its current state. For example, a virtual machine will show its current running state. Many Azure services will have a Monitoring tab that includes charts for a set of key metrics. This is a quick way to view the operation of the resource, and you can click on any of the charts to open them in metrics explorer for more detailed analysis.
See Tutorial: Analyze metrics for an Azure resource for a tutorial on using metrics explorer.

Activity log
The Activity log menu item lets you view entries in the activity log for the current resource.
Alerts
The Alerts page will show you any recent alerts that have been fired for the resource. Alerts proactively notify you when important conditions are found in your monitoring data and can use data from either Metrics or Logs.
See Tutorial: Create a metric alert for an Azure resource or Tutorial: Create a log query alert for an Azure resource for tutorials on create alert rules and viewing alerts.
Metrics
The Metrics menu item opens metrics explorer which allows you to work with individual metrics or combine multiple to identify correlations and trends. This is the same metrics explorer that's opened when you click on one of the charts in the Overview page.
See Tutorial: Analyze metrics for an Azure resource for a tutorial on using metrics explorer.
Diagnostic settings
The Diagnostic settings page lets you create a diagnostic setting to collect the resource logs for your resource. You can send them to multiple locations, but the most common is to send to a Log Analytics workspace so you can analyze them with Log Analytics.
See Tutorial: Collect and analyze resource logs from an Azure resource for a tutorial on creating a diagnostic setting.
Insights
The Insights menu item opens the insight for the resource if the Azure service has one. Insights provide a customized monitoring experience built on the Azure Monitor data platform and standard features.
See Insights and Core solutions for a list of insights that are available and links to their documentation.
Next steps
Now that you have a basic understanding of Azure Monitor, get start analyzing some metrics for an Azure resource.
Tilbakemeldinger
Send inn og vis tilbakemelding for