Azure Monitor & Application Insights
Monitor your Azure applications and infrastructure with Azure Monitor, Log Analytics, and Application Insights.
“Welcome back. Today we're covering observability — how you know your Azure applications are healthy, how you find problems before users do, and how you diagnose issues when they occur. Azure Monitor is the unified monitoring platform for everything in Azure, and Application Insights is the application performance monitoring layer. Together they give you full visibility from infrastructure to application code.”
“Azure Monitor is the central hub for observability in Azure. It collects two types of data: metrics, which are lightweight numerical measurements taken at regular intervals — CPU usage, memory, network throughput — and logs, which are detailed records of events. Every Azure resource automatically sends metrics to Azure Monitor with no configuration. Logs require you to configure diagnostic settings or install agents, but they provide the detailed context needed for deep troubleshooting.”
“A Log Analytics Workspace is where all your log data flows to and where you query it. You write queries using KQL — Kusto Query Language — a powerful and intuitive language for analyzing log data. KQL queries look similar to SQL but are optimized for time-series log analysis. Once you learn KQL basics, you can answer complex operational questions in seconds — find all errors from the last hour, show the top 10 slowest API calls, count failed logins by user.”
“Let me show you some practical KQL queries. The first finds the count of failed HTTP requests. The second groups exceptions by type so you can see which error is most common. The third calculates average CPU every 5 minutes — great for graphing. These queries work across all your applications and infrastructure in one place. Once your logs are centralized, this kind of analysis takes seconds instead of hours of grepping through log files.”
“Application Insights is the application layer of Azure Monitor — it gives you deep visibility into your application code. Add the Application Insights SDK or use auto-instrumentation, and it automatically tracks every HTTP request, every database call, every external dependency, and every exception. The end-to-end transaction view shows you exactly what happened during a single user request — every service called, every database query, every external API hit, with timing for each step.”
“Live Metrics streams real-time performance data — you can watch requests flowing through your application as they happen. The Application Map is a game-changer for microservices — it automatically discovers and visualizes all the services and dependencies your application talks to, with health indicators on each node. During an incident, the Application Map instantly shows you which component is degraded and how it's affecting dependent services. This alone has saved countless hours of debugging.”
“Azure Monitor Alerts let you proactively respond to problems before users notice. You define an alert rule — a metric threshold like CPU above 90%, a log query that finds errors, or a resource health event. When the condition is met, an Action Group fires. Action Groups define what happens: send an email, text a phone, call a webhook to trigger a PagerDuty incident, or even invoke an Azure Function to auto-remediate. Smart grouping clusters related alerts to prevent hundreds of notifications during a single incident.”
“Let's set up monitoring for a real application. I'll create a Log Analytics Workspace, enable Application Insights on an App Service, generate some traffic, then run KQL queries to analyze request patterns and exceptions. I'll create an alert rule that emails me when CPU exceeds 80%, and show you the Application Map to see all the dependencies the app talks to.”
“Good observability is what separates reactive firefighting from proactive operations. With Azure Monitor and Application Insights, you have full visibility into every layer of your stack. Next video we cover Azure DevOps — how to automate the building, testing, and deployment of your applications with CI/CD pipelines. Automation is the foundation of reliable software delivery.”
- 1Navigate to Azure Monitor in the portal
- 2Create a Log Analytics Workspace
- 3Enable Application Insights on an App Service
- 4Show Live Metrics stream
- 5Query logs with KQL (Kusto Query Language)
- 6Create an alert rule — email when CPU > 80%
- 7Show Application Map (dependency visualization)