Monitoring and Observability

Monitoring and observability reveal system health through metrics, logs and traces; service level indicators and objectives quantify reliability targets, while alerting on user-facing symptoms and tracing across services speed diagnosis.

Key formulas & points

Skim these first — then read the full notes below.

  • The three pillars: metrics, logs and traces
  • Alert on symptoms (latency) rather than only causes (CPU)
  • Distributed tracing follows a request across services

Topic details

Introduction

This topic covers understanding running systems. You collect the three pillars of telemetry, define SLIs/SLOs/SLAs, alert effectively on symptoms, and use distributed tracing and MTTR/MTTD metrics to detect and resolve incidents quickly.

Key relations & formulas

Formulas (Indian textbook notation)

  • SLIisameasuredmetric,SLOitstarget,SLAthecontractwithpenaltiesSLI is a measured metric, SLO its target, SLA the contract with penalties

Formulas (Indian textbook notation)

  • MTTR=meantimetorepair;MTTD=meantimetodetectMTTR = mean time to repair; MTTD = mean time to detect

Formulas (Indian textbook notation)

  • REDmethod:Rate,Errors,DurationperserviceRED method: Rate, Errors, Duration per service

Notation and sign conventions

Relation 1 —
SLIisameasuredmetric,SLOitstarget,SLAthecontractwithpenaltiesSLI is a measured metric, SLO its target, SLA the contract with penalties

Formulas (Indian textbook notation)

  • SLIisameasuredmetric,SLOitstarget,SLAthecontractwithpenaltiesSLI is a measured metric, SLO its target, SLA the contract with penalties
Write this relation with symbols exactly as in Gene Kim Devops Handbook — Standard reference before substituting numbers. Examiners award partial marks for a correct setup even when arithmetic slips.
Relation 2 —
MTTR=meantimetorepair;MTTD=meantimetodetectMTTR = mean time to repair; MTTD = mean time to detect

Formulas (Indian textbook notation)

  • MTTR=meantimetorepair;MTTD=meantimetodetectMTTR = mean time to repair; MTTD = mean time to detect
Write this relation with symbols exactly as in Gene Kim Devops Handbook — Standard reference before substituting numbers. Examiners award partial marks for a correct setup even when arithmetic slips.
Relation 3 —
REDmethod:Rate,Errors,DurationperserviceRED method: Rate, Errors, Duration per service

Formulas (Indian textbook notation)

  • REDmethod:Rate,Errors,DurationperserviceRED method: Rate, Errors, Duration per service
Write this relation with symbols exactly as in Gene Kim Devops Handbook — Standard reference before substituting numbers. Examiners award partial marks for a correct setup even when arithmetic slips.

Concept in depth

Monitoring tells you whether known things are working; observability lets you ask new questions about why. The three pillars complement each other: metrics give cheap aggregate trends, logs give detailed events, and traces follow a single request across many services to locate where latency accrues. Reliability is made concrete by SLIs (what you measure, like latency), SLOs (the target you commit to internally) and SLAs (the external contract). Effective alerting fires on user-visible symptoms — rising error rates or latency — rather than on every resource blip, because high CPU alone may not hurt users while a symptom always does. Incident metrics like MTTD and MTTR focus improvement on detecting and resolving problems faster.

Assumptions and validity limits

State assumptions explicitly before using any relation for monitoring and observability — steady state, uniform properties, linear elastic material, ideal gas, incompressible flow, etc., as applicable.
Wrong assumptions invalidate the entire solution even when the formula is correct. In DevOps viva and GATE descriptive questions, listing valid assumptions often earns separate marks.

Step-by-step problem approach

1. Read the question and list given data with SI units (common in DevOps papers).
2. Draw a neat labelled diagram where applicable — examiners in Indian universities award diagram marks even when arithmetic slips.
3. Identify which relation from this topic applies to monitoring and observability.
4. Use equation 1:
SLIisameasuredmetric,SLOitstarget,SLAthecontractwithpenaltiesSLI is a measured metric, SLO its target, SLA the contract with penalties
.
5. Use equation 2:
MTTR=meantimetorepair;MTTD=meantimetodetectMTTR = mean time to repair; MTTD = mean time to detect
.
6. Substitute values, compute, and verify units and sign (direction).
7. State conclusion in one line — e.g. safe/unsafe, stable/unstable, feasible/infeasible.

Applications & exam relevance

Monitoring and Observability appears in modern software delivery. In Indian it software curricula this topic is tested because it connects theory to CI/CD and infrastructure as code.
GATE and semester exams often combine monitoring and observability with earlier units — revise prerequisites before attempting mixed problems.
Industry interview panels sometimes ask: "Where did you use monitoring and observability?" — answer with a lab, mini-project, or plant visit example if possible.

Common mistakes in exams

Students confuse SLI, SLO and SLA, alert on causes (CPU) instead of user-facing symptoms (latency/errors), and treat logs, metrics and traces as interchangeable. Confusing MTTD (detect) with MTTR (repair) is a frequent slip.

Quick revision checklist

Before attempting monitoring and observability problems, confirm you can:
1. The three pillars: metrics, logs and traces
2. Alert on symptoms (latency) rather than only causes (CPU)
3. Distributed tracing follows a request across services
Revise the solved examples in Gene Kim Devops Handbook — Standard reference and one previous-year GATE or university paper for this unit.

Worked examples

Try the problem first — open the solution when you are ready to check.

MTTR calculation

Problem

Over 5 incidents the total repair time was 250 minutes. Compute the mean time to repair.

Solution

MTTR = total repair time / number of incidents = 250 / 5 = 50 minutes. Lowering MTTR (faster recovery) often improves availability more than trying to eliminate every failure.

Conceptual check — Monitoring and Observability

Problem

In a DevOps semester or GATE paper you are asked: "State the main assumption, the governing relation, and one practical consequence of monitoring and observability." What should a complete answer include?

📖 Standard books (India)

  • Gene Kim Devops HandbookStandard reference

    Read: Syllabus unit

    Referenced in Indian B.Tech syllabus