Core Track Guardrails-first chapter in core learning path.

Estimated Time

  • Reading: 35 min
  • Lab: 40 min
  • Quiz: 5 min

Prerequisites

What You Will Produce

On your own kind cluster: an alerting setup you can trust - only the Watchdog firing at rest; the backend measured on user requests per environment, not on probes; a short burst of errors that stays quiet, a sustained one that becomes one alert in the right receiver within minutes and resolves after recovery; a critical alert muting its own warnings. On the Uptrace track, one request followed from the browser through the backend to its database query, and to the backend’s log line by its trace_id.

Chapter 11: Observability (Metrics, Logs, Traces)

Interactive Explainer

Video is being produced. Check back soon.

Learning Objectives

By the end of this chapter, you will be able to:

  • Explain what makes an alert worth sending - an action, an urgency, an owner - and remove the ones that are not
  • Measure a service by what its users get, per environment, and alert on how fast the error budget burns instead of on every spike
  • Route alerts so that one incident reaches the right people once, and prove the routing without waiting for a real outage
  • Follow one request across the frontend, the backend and the database with a trace, and from the trace to its log line

Recall Check

Before continuing, quickly recall:

  • A container is OOMKilled. Where is the reason, and why not in the events? (Chapter 08)
  • What does the HPA use as 100% when it computes CPU utilization? (Chapter 09)
  • A release went out at 16:05. How do you prove which image production runs? (Chapter 10)

If you can’t answer these, revisit the corresponding chapter before proceeding.

Context

Chapter 10 put a tested image into production. This chapter is about knowing - quickly, and without guessing - whether it is working for the people who use it.

The platform collects plenty: Prometheus scrapes every pod and every node, the default rule set brings dozens of alerts, the backend exports traces and logs. None of that helps if the alert that matters reaches nobody, or reaches people who learned to ignore the channel because it fires all day about things that need no action.

So the chapter starts from the other end: an alert is a request for a human to act. It must say what is wrong for users, in which environment, how urgent it is, and what to look at first - and when nothing is wrong, it must be silent. Metrics answer whether users are failing; traces answer where a request spent its time and failed; logs answer what happened, joined to the trace by the same trace_id.

Work through each lesson section; the chapter video, once it is published, gives the concept overview.

From a Failing Request to a Person

Diagram: user requests (not probes); Prometheus error ratio per environment; burn-rate rule long + short window, traffic floor; Alertmanager group, mute warnings, route by environment; production receiver; nonprod receiver; trace: browser → backend → database; log line with the same trace_id

From Chapter 14 on, Alertmanager also hands every alert except Watchdog and InfoInhibitor to the Guardian, which adds context; these receivers keep delivering as before.


Detailed Lessons

Hands-On Materials

Labs, quizzes and runbooks for this chapter are free - sign in with your email, Google or GitHub to open them.

  • Runbook: Backend Alerts Free · sign in
  • Lab: Alerts That Ask for an Action Free · sign in
  • Quiz: Chapter 11 (Observability) Free · sign in