Monitoring and analysing telemetry

AZ-400 DevOps EngineerInstrumentation strategyAbout 25 minutesBy Cloud Hands On

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

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

InsightCovers
Application InsightsApp requests, dependencies, exceptions, page views, custom events; distributed tracing; availability tests
VM insightsVM performance (CPU, memory, disk, network) and a map of processes and connections
Container insightsAKS node and pod performance, container logs; often with Managed Prometheus
Storage insightsCapacity, transactions, latency and availability across storage accounts
Network insightsHealth 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 == false filters rows.
  • | summarize count() by resultCode aggregates; bin(timestamp, 5m) groups by time.
  • | project name, duration picks columns; | extend secs = duration / 1000 adds one.
  • | order by duration desc | take 10 sorts and limits; | render timechart draws 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.
  • summarize aggregates; project chooses columns; extend adds 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

Keep going