Table of contents
1.
Introduction
2.
Overview Page
3.
Activity Log
4.
VM insights
5.
Collect guest metrics and logs
6.
Analyze Metrics
7.
Analyze Logs
8.
Health Monitoring
8.1.
Azure service health
8.2.
Azure resource health
9.
Alerts
9.1.
Activity Log
9.2.
Resource Metrics
9.3.
Diagnostic Logs
10.
Advanced Monitoring
10.1.
Operations Management Suite
10.2.
Log Analytics
10.3.
Network Watcher
11.
Frequently Asked Questions
11.1.
What is Azure Monitor?
11.2.
What does the Activity log display?
11.3.
In which form is data stored in the Log Analytics workspace?
12.
Conclusion
Last Updated: Mar 27, 2024

Azure VM Monitoring

Career growth poll
Do you think IIT Guwahati certified course can help you in your career?

Introduction

Whenever we have applications and business-related processes that rely on azure resources, we need to monitor these resources for their performance, availability, and operation. Azure Monitor is a full-stack monitoring service that contains a complete set of features required for monitoring the Azure resources. Many of the monitoring tasks user doesn't even need to interact with it as they are integrated with the Azure portal. Azure VM collects the same monitoring data as any other Azure resource.

Overview Page

In order to explore the Azure Monitor, the user needs to go to the overview page for their virtual machine and then select the Monitoring tab. 
The Alerts pane gives you all the alerts which have been fired in the last 24 hours, along with necessary statistics about those alerts, and if there are no alerts configured, then it provides a link to help the user quickly create new alerts for their VM.

overview page img

Source

The Key Metric pane contains charts that show key health metrics like average CPU and network utilization. At the top of the pane is an option to select a duration to change the time range for the charts. There is also an option to select a chart to open its Metrics pane to drill down further or to create an alert rule.

key metric page img

Source

Activity Log

It is used to display all the recent activities done by the virtual machine along with any configuration changes and when it was stopped & started. There are two methods to view the logs one is to view the activity log in the Azure portal, while the other is to create a diagnostic setting that would send the logs to a Log Analytics Workspace from where you can view events over time and analyze them with other collected data.

activity log img

Source

VM insights

Azure Monitor has some services which have the ability to display customized monitoring experiences, such experiences are called insights. Insights include pre-built workbooks and many other specialized features for the service particularly. VM insights are designed in such a manner that they can monitor the entire set of Azure and hybrid VM in a single interface. 

If a user starts to monitor multiple virtual machines in the Azure environment, then the user might want to consider enabling the following features of the VM insights:

  • In order to monitor the guest operating system and the workload of the virtual machine, the user can switch on the simplified onboarding for the Log Analytics and dependency agent.
  • To analyze the core performance metrics of the guest's virtual machine operating system, the user might want to consider switching on the pre-defined trending performance charts and workbooks.
  • The dependency map is used to display all those processes that are running on each virtual machine and their interconnected components with other machines.
     

VM insights page img

Source

Collect guest metrics and logs

When a virtual machine is created, the Azure Monitor starts collecting metric data automatically for that VM host. An agent is required to be installed in order to collect metrics from the guest operating system of the virtual machine. If the VM insights are enabled, the Log Analytics agent gets installed and will start sending performance data to the Azure Monitor Logs, enabling Performance and Map views.

Once you have enabled VM insights, install the Azure Monitor agent, which would allow the user to collect guest logs from the virtual machine and send the guest metrics to the Azure Monitor Metrics pane. This also allows the user to analyze the metrics on the metrics pane.

Analyze Metrics

Metrics are numerical values representing the system's state at a particular point in time. The user must install the Azure Monitor agent in order to collect guest metrics even tho platform metrics for the virtual machine host are collected automatically. The overview pane contains the most common host metrics, and the others can be accessed by using the Metrics pane. This also enables the user to create charts from metric values and visually correlate trends. A user can create a metric alert rule or pin a chart to an Azure dashboard.

metrics page image

Source

Analyze Logs

In Azure Monitor Logs, data is stored in the Log Analytics workspace, where it is stored in separate tables, each having its own set of unique properties. The VM insights store the data in logs and provide performance and map views that the user can use to interactively analyze the data. The user can work directly with data to drill down further or perform custom analyses.

The log queries in the Log Analytics can be used to analyze all the other log data that the user collects from the virtual machine. There are several built-in queries that are available for use, or the user can create their own for the virtual machine. The user can also interact with the results of the queries by including them in a workbook to make them available to other users, or it can be used to generate alerts based on the results.

logs page image

Source

Health Monitoring

Azure service health

  • It provides the user with personalized information if any problem occurs in Azure services, impacting the user's services.
  • It helps the user in preparing for the upcoming planned maintenance.

Azure resource health

  • It helps the user to diagnose and get support when an Azure issue impacts any of the user's resources.
  • The user can view the current as well as the past health of the Azure resources.
  • The user can also get technical support when the user needs help with Azure service issues.

Alerts

Azure Monitor has the ability to notify the user when any important conditions are found in the monitoring data. Such types of alerts can help the user to identify and address issues in the user's system before the customer notices them.

Activity Log

activity log page img

Source

Resource Metrics

resource metrics page img

Source

Diagnostic Logs

diagnostic logs page img

Source

Any diagnostic log can be alerted using an OMS alert. For resource metrics and activity logs, the Azure monitor is used.

Suppose someone stops the virtual machine that was to be alerted, or if the CPU utilization goes beyond 90 percent in any of the virtual machines, then we want to get alerted. In Azure monitor, we can define such rules. Once the condition within the rule gets satisfied, the user can take action based on the result.

Advanced Monitoring

Operations Management Suite

Operations Management Suite, also known as OMS, contains various capabilities such as monitoring, alerting, and alert remediation across cloud and on-premises assets.

Log Analytics

It is used to collect data that is generated by resources in the user's cloud and on-premises environments and from other monitoring tools that provide analysis across multiple resources.

Network Watcher

It monitors the user's VM and associated resources as they relate to the network they are in.

Frequently Asked Questions

What is Azure Monitor?

Azure Monitor is a monitoring service that contains a complete set of features to monitor users' Azure resources.
 

What does the Activity log display?

The activity log is used to display recent activities by the virtual machine.
 

In which form is data stored in the Log Analytics workspace?

Data is stored in the form of tables in the Log Analytics workspace.

Conclusion

In this article, we have extensively discussed Azure VM Monitoring and the features it offers.

After reading about the Azure VM Monitoring, are you not feeling excited to read/explore more articles on Cloud technologies? Don't worry; Coding Ninjas has you covered. To understand the difference between AWS, Azure & Google cloud and which platform to choose: AWS vs. Azure vs. Google Cloud.

If you wish to enhance your skills in Data Structures and AlgorithmsCompetitive ProgrammingJavaScript, and many more, then you should check out our Guided path column at Coding Ninjas Studio. We at Coding Ninjas Studio organize many contests in which you can participate. You can also prepare for the contests and test your coding skills by giving the mock test series available. In case you have just started the learning process, and your dream is to crack major tech giants like Amazon, Microsoft, etc., then you should check out the most frequently asked problems and the interview experiences of your seniors that will surely help you in landing a job in your dream company. 

Do upvote if you find the blogs helpful.

Happy Learning!

Live masterclass