<img alt="" src="https://secure.leadforensics.com/150446.png " style="display:none;">
Go to top icon

Monitor your workload using Azure Monitoring Service

Viresh Mathapati Jan 26, 2018

Azure

Monitoring is very essential for every application and server and especially when you are running your application in Cloud. Considering that in cloud you don’t get access to the physical hardware, it is very important to troubleshoot and find the Root Cause of problem using the tools and services provided by the Cloud provider to resolve the issues and continue your business. There are various cases where businesses faced long downtime due to lack of monitoring. Microsoft Azure also provides some monitoring tools to help you monitor your Azure serveries and that includes Azure Monitor, Application Insight and Log Analytics. These services comes with free tier as well as paid tiers with more additional features like more limit on daily log data collection etc.

Azure Monitor

Azure Monitoring service provides monitoring of all Azure resources at single window. To use Azure monitor, you don’t to do any configurations. It’s by default available for every Azure Account. It’s the central monitoring for all Azure resources and central place to configure and manage alerts for any Azure resource. Also it has the Network Watcher which helps you track the Azure VNET Packets for any troubleshooting.

ms-azure-monitor.png
ms-azure-1.png

ms-azure-2.png

As per the above screenshots, you can apply different types of filters and get log data report analysis as per your requirement. Azure Monitor service comes in free tier as well as paid tier.

Azure Monitor Service Contains the following services for Monitoring:

  • Application Insight
  • Log Analytics – Operational Management Suite
  • Network Watcher

Log Analytics (OMS):-

To configure Log analytics you need to create the OMS workspace in your Azure account, so every time you go to Log analytics it will redirect you to the OMS portal in a new tab. To add your VMs into OMS portal you need to configure your VM form OMS portal to capture the Log data and then you can apply searches and analytics on top of log data.

In Log Analytics you can find many readymade dashboard solutions for monitoring various types of Azure services like Monitor Azure Containers, Monitor Azure Application Gateways etc.
To use the predefined dashboard, you need to go to the Solutions Gallery and from there you can add that solution to your workspace and then you can configure your Azure resources.
Log analytics provides very rich predefined solutions and also provides the flexibility of log search.

ms-azure-3.png

Log Analytics home dashboard

ms-azure-4.png

Log Analytics Solution Gallery

ms-azure-5.png

Log Analytics Agent Health Solution dashboard home

ms-azure-6.png

Log Analytics Azure Activity Logs Solution Dashboard home

Application Insight

Application Insight also provides rich monitoring but rather than providing Azure Services metrics logs like Azure Monitor and Log analytics, it provides the detailed application logs including the application errors, exceptions, page response time, user request origin and query performance etc. Application Insight can be configured for .Net, Java and PHP applications. And you can also configure Application Insight if your web application is running outside of Azure.

In the below screenshot, the Application Insight was configured for a .Net application and this is the default home page of Application Insight. It also provides the live stream of log and configuration for alerts based on a specific event. You can see the request performance in the latter image.

ms-azure-7.png

Application Insight also provides rich set of monitoring and various other services to apply the better analytics on top of the log captured by Application Insight.

ms-azure-8.png

Customized dashboard of Application Insight as per the requirement

ms-azure-9.png

Network Watcher

Azure Network Watcher provides you the ability to view the data in Azure Virtual Network if there is any issue. Generally in case of Azure VM issue, we try to connect the Remote server and find the issue, but what if the issue is in Azure VNET? So in this the Azure Network Watcher will help us to track the particular packet from Azure VNET without going and logging into Azure VM. We have various options like Next Hoop, Packet Capture, IP Flow Verify and VPN Diagnostics in Azure Network Watcher to troubleshoot the network issues in Azure Virtual Network.

Network Watcher is already available in Azure Monitor so you just need to Enable Network Watcher for your Azure Region to use the service. You can also configure an alert on the particular packet capture.

Go to Azure Monitor >> Network Watcher >> Overview and from there you can Enable Network Watcher for your Azure Region.

ms-azure-10.png

After that to track your VM packet flow, you need to add Network Watcher Extension from VM Extensions Tab as shown in the image below.

ms-azure-11.png

Options such as IP Flow verification, Next hoop, VPN Diagnostics and Packet Capture etc will be available for you to use once you add Network Watcher VM extension to your Azure Virtual Machine.

ms-azure-12.png

So in terms of Virtual Network data traffic/packets the Network Watcher provides very rich features and troubleshooting tools that are necessary things while your network in far away and not within your reach.

There are various third party monitoring tools and services available in the market, but we recommend using the Azure provided Monitoring services if you are running your workload on Azure. Azure Monitoring services have far better access and control over your Azure Infrastructure so that they can help you with deep troubleshooting. Also as we see above we can automate the whole process by configuring custom alerts and web hooks so that we don’t need to sit in front Azure portal 24/7 to monitor our infrastructure. If you have any specific workload and you are looking for the monitoring services in Azure then let us know, e-Zest can help you choose the right monitoring solution in Azure.

e-Zest is a leading digital innovation partner for enterprises and technology companies that utilizes emerging technologies for creating engaging customers experiences. Being a customer-focused and technology-driven company, it always helps clients in crafting holistic business value for their software development efforts. It offers software development and consulting services for cloud computing, enterprise mobility, big data and analytics, user experience and digital commerce.