What are Azure Monitor and Application Insights? How exactly Azure Monitor work? How can you visualize Application Map with Application Insights? Learn the log retentions and exports. Learn all of this in this article. Helpful article for AZ-304 Exam.
- Log : web application tracings and logs.
- time-series : data sensitive to time like performance counter.
- raw data : un-transformed data which is in raw format received from sources
- Aggregated data : which has a lot less detail and consists counts, averages and other statistical data that you see in Metric Explorer.
- Debug Snapshots : which contains debugging data
- Azure Monitor provides an overview of all the monitoring data available.
- It is a center monitoring hub for all of the services.
- You can monitor blow things:
- Activity Logs : who created the service
- Metrics : CPU usages of VMs
- Azure Services : which queries executed on Cosmos DB or how many users visited to App Service web app.
You can drill down the specific data:
- You can search data using SQL like query called Kusto Query Language (KQL)
- Workbooks templates to visualize data as reports or create custom Workbooks.
- Insights to trace web apps Automate alert responses : react on a specific data with an alert and take some actions. Example: if 10 HTTP exceptions occurs on web app then create a bug automatically.
- Use it to monitor web and desktop application
- Monitor and alerts on below things:
- Usages: By whom application is used and how it is used.
- Ping and multi-step test : ping your website from multiple locations and test if your application is available to all locations. It alerts if your app is offline.
- It sends data to Log Analytics Workspace which is a Data Lake that Azure Monitor uses.
- Export Azure Application Insight data to storage account in JSON format to keep for long time. For compliance requirement u can keep it.
- Application Insights provides your Application Map. It also provides the performance, errors and availability of each components of your application map. You can use this to know which component of your application is un-healthy.
Logs are created by below things:
- Azure Resources
- Virtual Machines Agents
- Data Collector APIs
Above data is stored in one or more datastores. Example: In Log Analytics Workspace , this is a data lake that stores data in raw format and translate it into table-like structure that you can query using Kusto Query Language (KQL).
The data in the Log Analytics Workspace is called Azure Monitor Logs.
The other data store is time series datastore. This is optimized to store time based data like performance counter and other metrics that comes in granularity of every second, minute or other granularities.
- Log Analytics is a feature of Azure Monitor. Logs can be queried by Log Analytics where Azure Monitor can analyze log data with the Kusto Query Language.
- Metrics Explorer is a different feature of Azure Monitor. Azure Monitor analyzes metrics with the Metrics Analyzer.
Workbooks allows you to:
- Combine data from various Azure data sources and data types.
- Enable at-scale views across multiple resources
- Visualize related data in a single interactive report.
- The data can be analyzed and used by Dashboards, Insights, Alerts.
- Application Insights send its data to Log Analytics Workspace which Azure Monitor can use.
- Application Insights can store its raw data for up to 730 days (2 Years).
- You can use Continuous Export (deprecated) or Diagnostics Settings (current) to store log data in Azure Storage, Event Hub as soon as data arrives. You can export data to Azure storage account with vNet, firewalls and private links.
- Aggregated data is retained at a granularity of 1 minute for 90 days.
- Debug Snapshots are kept for 15 days.
- The data which is present in the Azure Analytics Workspace can stay up to 730 days. You can choose lower days also.
- You can export this data to Azure Storage or Azure Event Hubs to be processed by another system.
- Metrics can be stored for max 93 days.
- Performance counters collected by Log Analytics Agents which further can be sent to Log Analytics Workspace and because of that it can be stored for 31 days by default to 730 days.
Virtual machines and other compute resources require an agent to collect monitoring data required to measure the performance and availability of their guest operating system and workloads.
Check the latest Windows agents updates here.
Windows Agents are small application that collects data and sends to Azure Log Analytics workspace or Metrics Datastore. If you run windows based machine or VM you can install an Azure Monitor agent.
Check the latest Linux agents updates here.
Thanks for reading my article till end. I hope you learned something special today. If you enjoyed this article then please share to your friends and if you have suggestions or thoughts to share with me then please write in the comment box.
- Please subscribe to All-Access Membership PRO plan to access current and future angular, node.js and related courses.
- Please subscribe to All-Access Membership ELITE plan to get everything from PRO plan. Additionally, you will get access to a monthly live Q&A video call with
Rupeshand you can ask doubts/questions and get more help, tips and tricks.
Your bright future is awaiting for you so visit today FullstackMaster and allow me to help you to board on your dream software company as a new Software Developer, Architect or Lead Engineer role.