Volume 11 · Chapter 7 — Advanced Cloud Architecture, Azure Solution Architect & Enterprise Platform Engineering

Observability and Reliability Engineering

Goutham Mayaluri 7 min read .NETC#ILObservabilityAzure

7.1 Introduction

Reliability is engineered, and observability is how you see the system well enough to engineer it. Volume 7 covered the three signals and SRE concepts; this chapter takes the Azure architect’s view - the Azure Monitor stack, querying telemetry with KQL, and designing reliability quantitatively with SLIs, SLOs, and error budgets. The theme is that you cannot improve reliability you do not measure, and you cannot operate a distributed system you cannot observe.

7.2 The Azure Monitor Stack

Azure Monitor unifies telemetry: Application Insights for application performance monitoring (request duration, failures, dependencies, distributed traces), Log Analytics for centralized log and query storage, and metrics for numeric time series. OpenTelemetry instrumentation feeds these, and correlation across services stitches a request into one timeline.

flowchart TB
  App["Apps (OpenTelemetry)"] --> AI["Application Insights\n(APM, traces)"]
  Infra["Infrastructure"] --> Metrics["Azure Monitor Metrics"]
  App --> LA["Log Analytics\n(centralized logs, KQL)"]
  AI --> Dash["Dashboards / Workbooks"]
  Metrics --> Alerts["Alerts (SLO burn)"]
  LA --> Alerts

7.3 Querying Telemetry with KQL

Kusto Query Language (KQL) is how you interrogate telemetry in Log Analytics and Application Insights - computing latency percentiles, error rates, and failure breakdowns to diagnose issues and drive alerts. Fluency in KQL is a core operational skill for an Azure architect.


// p95/p99 latency and failure rate per operation over the last hour.
requests
| where timestamp > ago(1h)
| summarize
    p95 = percentile(duration, 95),
    p99 = percentile(duration, 99),
    failureRate = 100.0 * countif(success == false) / count()
  by operation_Name
| order by p99 desc

7.4 SLIs, SLOs, and Error Budgets

Reliability is made concrete with SRE’s vocabulary. An SLI measures user-facing health (percentage of requests served under 300 ms without error); an SLO is the target (99.9%); the SLA is the external, contractual commitment (usually looser than the SLO to leave margin). The error budget - the allowed shortfall - governs the balance between shipping features and doing reliability work, turning “how reliable is reliable enough” into a shared, data-driven decision.

7.5 Reliability by Design

Observability reveals problems; design prevents them. Reliability comes from redundancy across availability zones, multi-region where justified, health probes and automated recovery, resilience patterns (timeouts, retries, circuit breakers, bulkheads), and disaster-recovery planning with defined RTO/RPO. Alerts fire on user-facing symptoms and SLO burn rate, not noisy low-level causes, to avoid alert fatigue.

Senior Architect Question

What is the difference between an SLI, an SLO, and an SLA?

They form a chain from measurement to commitment. An SLI (Service Level Indicator) is a metric that measures a user-facing aspect of reliability - for example the percentage of requests served in under 300 milliseconds without error, or availability over a window. An SLO (Service Level Objective) is the internal target you set for that SLI, such as 99.9%, which the team aims to meet and against which you alert and prioritize work. An SLA (Service Level Agreement) is the external, often contractual, commitment you make to customers, with consequences (credits, penalties) if breached. The important relationships: the SLO is typically set stricter than the SLA so there is a safety margin - you want to catch and fix reliability problems internally (SLO) well before you breach the customer promise (SLA) - and the gap between 100% and the SLO is the error budget, the allowed unreliability that governs how much risk you can take shipping features. So the SLI is what you measure, the SLO is the internal target you manage to, and the SLA is the external promise; designing them coherently (SLI reflects real user experience, SLO stricter than SLA, error budget derived from SLO) is what makes reliability a measurable, managed property rather than a vague aspiration.

Senior Architect Question

How do you use the Azure Monitor stack to diagnose a production latency problem?

I follow the observability funnel from broad to specific, using each part of the stack for what it does best. First, metrics and Application Insights tell me something is wrong and localize it - I look at request duration percentiles (p95/p99, not averages, since averages hide the slow tail) and failure rates per operation, which points me to the affected endpoint or service. Then distributed tracing in Application Insights shows me where the time actually goes within a slow request - which dependency span or database call dominates - so I stop guessing about the layer. Then I drill into Log Analytics with KQL, querying the logs for the affected operation and correlating by trace/ operation id, to find the specific cause: a slow query, a timeout, an exception pattern. KQL lets me compute exactly the aggregations I need - latency percentiles by operation, failure breakdowns, dependency durations - and slice by time to see when it started, often correlating with a deployment. Throughout, correlation IDs stitch a single request across services so I can follow it end to end. The discipline is to move from “is something wrong and how bad” (metrics/App Insights) to “where” (traces) to “why” (logs via KQL), rather than diving into one component’s logs blindly - and to alert on the symptom (SLO burn) so the investigation starts from real user impact.

Principal Architect Question

How do you design reliability into an enterprise Azure system, and how do error budgets change team behavior?

I design reliability quantitatively and structurally, then use error budgets to align the organization. Structurally, I build for failure: redundancy across availability zones and multi-region where the workload’s criticality justifies it, health probes with automated recovery and failover, resilience patterns (timeouts, retries with backoff, circuit breakers, bulkheads) so partial failures are contained, and disaster-recovery designs with explicit RTO/RPO tested regularly. I make the whole system observable by default - OpenTelemetry into Application Insights and Log Analytics, distributed tracing, and dashboards - and I define SLIs that reflect real user experience with SLOs set stricter than the external SLA, alerting on SLO burn rate and user-facing symptoms rather than noisy causes to avoid alert fatigue. The error budget - the allowed shortfall from the SLO - is what changes behavior: it converts the perennial features-versus-stability argument into an objective, shared decision. While the budget is healthy, teams are free to ship quickly and take reasonable risks, because reliability is comfortably within target; when incidents burn the budget down, the same agreed policy automatically shifts effort to reliability work and slows risky releases until health recovers. This aligns developers and operators around one number instead of opinion, prevents both reckless over-shipping and paralyzed over-engineering, and makes “how reliable is reliable enough” a decision the whole organization owns. I pair it with blameless postmortems whose action items are tracked to completion, so each incident permanently improves the system. Reliability becomes an engineered, measured, and organizationally-managed property rather than a matter of heroics.

7.6 Banking Enterprise Scenario

A bank instruments every service with OpenTelemetry into Application Insights and Log Analytics, with distributed tracing and correlation IDs. Each critical service has an SLI (percentage of transactions under 300 ms without error), an SLO (99.95%) stricter than the customer SLA, and an error budget that governs release pace. On-call engineers diagnose issues by moving from metrics to traces to KQL log queries, and alerts fire on SLO burn rate rather than raw spikes. The transaction core runs zone-redundant with a paired DR region and tested failover, resilience patterns contain dependency failures, and blameless postmortems turn every incident into a tracked improvement - reliability engineered and measured, not hoped for.

Chapter Revision Notes

  • Azure Monitor unifies App Insights (APM/traces), Log Analytics (KQL), and metrics.
  • KQL is the core skill for querying telemetry - latency percentiles, error rates, failures.
  • SLI = measurement, SLO = internal target (stricter than SLA), SLA = external commitment.
  • Error budgets turn features-vs-stability into a shared, data-driven decision.
  • Engineer reliability with redundancy, resilience patterns, DR (RTO/RPO), and symptom-based alerts.