Monitoring and analysing telemetry
Azure Monitor with DevOps tools, Application Insights and the insights for VMs, containers, storage and networks, GitHub insights, pipeline alerts, distributed tracing and KQL.
In this lesson you'll learn
- Connecting Azure Monitor to DevOps tools
- Telemetry from Application Insights, VM, Container, Storage and Network insights
- Monitoring in GitHub and alerts for pipelines
- Infrastructure metrics, distributed tracing and basic KQL
1. Azure Monitor and DevOps
Azure Monitor collects metrics and logs; Azure Monitor Logs keeps logs in Log Analytics workspaces. It links to DevOps tools: alerts can create work items or call webhooks; the Query Azure Monitor alerts check blocks deployments while production is unhealthy; release annotations mark deployments on Application Insights charts, so you can see whether a release changed behaviour.
2. Collecting telemetry
| Insight | Covers |
|---|---|
| Application Insights | App requests, dependencies, exceptions, page views, custom events; distributed tracing; availability tests |
| VM insights | VM performance (CPU, memory, disk, network) and a map of processes and connections |
| Container insights | AKS node and pod performance, container logs; often with Managed Prometheus |
| Storage insights | Capacity, transactions, latency and availability across storage accounts |
| Network insights | Health and metrics of network resources, topology, connection monitoring |
Application Insights is instrumented with the Azure Monitor OpenTelemetry distro or auto-instrumentation, and should be a workspace-based resource.
3. Monitoring GitHub and pipelines
GitHub Insights show pulse, contributors, traffic and dependency graphs; GitHub Projects have insights charts (for example items by status over time) you can create and configure. Actions usage metrics show minutes by workflow.
For pipeline alerts: Azure DevOps notifications (email on failed builds), service hooks to Teams or Slack, and the Teams apps; GitHub sends notifications for failed workflow runs, and workflows can post to chat on failure.
4. Analysing telemetry
Infrastructure indicators: CPU (sustained high use, throttling), memory (pressure, leaks), disk (IOPS, queue length, latency), network (throughput, errors). Usage and performance: request rates, response times (look at percentiles, not only averages), failure rates and user flows.
Distributed tracing follows a request across services with one operation ID. In Application Insights, the transaction details view and application map show where time is spent and which dependency failed.
KQL basics:
requests | where timestamp > ago(1h) | where success == falsefilters rows.| summarize count() by resultCodeaggregates;bin(timestamp, 5m)groups by time.| project name, durationpicks columns;| extend secs = duration / 1000adds one.| order by duration desc | take 10sorts and limits;| render timechartdraws a chart.
Example
After a release, SS Kaiser's checkout got slower. The application map showed the new payment dependency taking 2 seconds; a KQL query on dependencies, summarised by target and bin(timestamp, 5m), confirmed it started at the deployment annotation. They rolled back in 10 minutes.
Exam traps to remember
- Distributed tracing uses a shared operation ID across services.
summarizeaggregates;projectchooses columns;extendadds columns.- VM insights is for VMs; Container insights is for AKS.
Test yourself: 3 check questions and exam-style practice questions on this topic are in the AZ-400 DevOps Engineer app.
Practise in the app