Pidoku

Observability

Seeing inside running systems — metrics, logs, traces and profiles, then the GPU, token and cost telemetry that AI infrastructure adds.

Start with Module 1
  • 6 modules
  • 30 lessons
  • ~24h 25m

Modules

Read them in order. Each module builds on the one before.

  1. Module 1 Why Observability Before any tool: what are you trying to learn about a running system, and how do you state "working" precisely enough that a machine can check it? 4 lessons · ~2h 40m
  2. Module 2 Metrics Metrics are the cheapest signal and the one every alert is built on. This module builds a metrics library by hand, then uses the real one, then learns to query it without being fooled. 5 lessons · ~4h 5m
  3. Module 3 Logs, Traces and Profiles Metrics tell you something is wrong. These three signals keep the detail needed to say what. 4 lessons · ~3h 25m
  4. Module 4 Running It Emitting telemetry is the easy half. This module is about the system that receives it, the screens and alerts built on it, what it costs, and how to use it when something is on fire. 5 lessons · ~4h 10m
  5. Module 5 AI Infrastructure Everything so far applies to any service. This module is about what changes when the service is a model on a GPU: new resources to watch, new units of work, new failure modes — and a product … 7 lessons · ~6h 30m
  6. Module 6 Tools and Frontier The mechanisms in modules 1–5 are stable. The products that implement them are not: this module maps what exists, explains the direction the field is moving, and gives you a method for … 4 lessons · ~3h 35m

Build

Reference

About

Learn to see inside running systems: what to measure, how the measurements are collected and stored, how to turn them into decisions — and what changes when the system is a rack of GPUs generating tokens.

This learning material starts at “what is a metric?” and ends at “design the telemetry for a multi-tenant inference platform”. It assumes you can program in Go. It does not assume you have run Prometheus, read a trace, or been on call.

It leans on Inference Engineering for the systems being observed — the GPUs, the engines and the serving stack. You can take modules 1–4 without any of them.


How this learning material works#

Every lesson follows the same shape:

  1. The idea in one minute — the whole lesson in a few sentences.
  2. An analogy — something from everyday life with the same shape.
  3. A picture — a hand-drawn diagram of the mechanism.
  4. How it really works — the precise version, with real names and numbers.
  5. Code — a small Go program you can run. Almost all of them use only the standard library.
  6. Remember this — the three or four facts worth keeping.
  7. Try it and Check yourself — exercises and questions.

Why build the tools before using them?#

You will not use a hand-written metrics library in production; you will use Prometheus client libraries and OpenTelemetry. But a counter is twenty lines of Go, a histogram is forty, and a trace context is one HTTP header. Building each one once removes the mystery, and the mystery is what makes people instrument badly: labels with unbounded values, averages of percentiles, alerts on causes instead of symptoms. Each lesson builds the mechanism first and then shows the production tool that does the same job.

flowchart LR
  APP["Your service<br/>counters, spans, logs"] --> COL["Collection<br/>scrape or push"]
  COL --> STORE[("Storage<br/>time series, columns, objects")]
  STORE --> Q["Query<br/>PromQL, SQL, trace search"]
  Q --> DASH["Dashboards"]
  Q --> ALERT["Alerts"]
  ALERT --> HUMAN["A person<br/>or an agent"]
  HUMAN -->|"asks a new question"| Q
  class APP compute
  class COL io
  class STORE memory
  class Q,ALERT queue
  class DASH,HUMAN neutral

The path#

flowchart LR
  I["1 · Why observability"] --> II["2 · Metrics"]
  II --> III["3 · Logs, traces, profiles"]
  III --> IV["4 · Running it"]
  IV --> V["5 · AI infrastructure"]
  V --> VI["6 · Tools and frontier"]
  class I neutral
  class II,III compute
  class IV queue
  class V memory
  class VI io
ModuleYou will be able to
Module 1 · Why ObservabilitySay what to measure and why; define an SLO; read a percentile correctly
Module 2 · MetricsInstrument a Go service, write PromQL, choose histogram buckets, keep cardinality bounded
Module 3 · Logs, Traces and ProfilesEmit structured events, propagate a trace, use OpenTelemetry, read a profile
Module 4 · Running ItDesign the pipeline, build dashboards that answer questions, alert on SLO burn, control cost, work an incident
Module 5 · AI InfrastructureObserve GPUs, inference engines, LLM requests, a serving fleet, cost and power, and output quality
Module 6 · Tools and FrontierMap the tool landscape, explain how the field is changing, and know what to watch
ProjectsBuild five Go programs that make the ideas stick

What you need#

  • Go 1.22 or newer and a terminal.
  • Nothing else for modules 1–3: every program runs offline.
  • Docker (or Podman) for the optional exercises that start Prometheus, Grafana or an OpenTelemetry Collector.
  • No GPU required. Module 5 explains GPU and engine telemetry with simulators and real metric names; the exercises that read a real GPU say so and give a no-GPU alternative.

Getting started in fifteen minutes#

  1. Read 1.a and run its program.
  2. Read 2.a and 2.b; curl your own /metrics endpoint.
  3. If you came for AI infrastructure and already know Prometheus, jump to 5.a and come back to module 2’s histograms and cardinality lessons when a percentile or a bill surprises you.

A promise about names and versions#

Metric names, tool versions and project statuses in this learning material were checked on 3 October 2026. Mechanisms — what a counter is, why a percentile cannot be averaged, why a GPU-utilization gauge misleads — do not change. Names do: a lesson says so wherever a name comes from a specification that is still marked unstable, and 6.c lists where to check what has moved.

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in