Come, run a workshop on the fundamentals of distributed systems

Come, run a workshop on the fundamentals of distributed systems

Hands-on sessions for engineers - by engineers - who design, deploy, and debug large-scale distributed systems

Rakesh Mukherjee

@ramkhrj

From raw logs to alerts you can prove: build an observability pipeline from scratch

Submitted Nov 14, 2026

Format: Hands-on workshop · 3.5 hours (can be adapted to 2.5–3 hours) · Intermediate · Runs on your laptop with Docker Compose

Why this workshop

Last July one of our databases at Huntbase ran out of disk over a few days. Nothing alerted. We found out when a core service of the platform had been crash-looping for hours. Later we found alert rules that could never fire: a wrong metric name, a threshold in a field the rule engine ignored, a metric our own collector was dropping. Every one of them looked green.

In this workshop you start with a small service that writes messy logs and build the whole pipeline yourself with the OpenTelemetry Collector, Prometheus, Loki, Tempo and Grafana: structured events, metrics with a cardinality budget, traces linked to logs, SLO burn-rate alerts, and tests that prove those alerts fire. Every lab ends with a check script, so you know you got there.

Content

Time Section What you do
20 min 0. Setup and the raw data Bring the stack up; read the service’s messy logs (mixed formats, multi-line tracebacks, PII in clear text)
35 min 1. Raw logs → structured events Parse, redact and enrich logs in the OTel Collector
35 min 2. Metrics and the cardinality trap Derive request, error and latency metrics from events; break a cardinality budget on purpose, then fix it in the collector
10 min Break
25 min 3. Traces and correlation Inject latency downstream; go from a latency spike to the trace to its log lines
35 min 4. Alerts you can trust Static thresholds vs multi-window SLO burn-rate alerts, under injected faults
20 min 5. Prove your alerts can fire Debug a planted dead alert; write rule unit tests with promtool; add a dead-man’s switch
15 min 6. Wrap-up What to take back to work; Q&A
15 min Buffer Absorbs setup overruns; otherwise a stretch lab

Stretch labs for fast finishers or take-home: rolling-baseline anomaly detection and where it misleads, tail sampling in the collector, the same pipeline on a ClickHouse backend.

Target audience

Backend, platform and SRE engineers who use Docker and a terminal every day. No prior Prometheus or OpenTelemetry experience needed. If you already run Prometheus, the alert-testing and cardinality sections will still be new.

Knowledge requirements

  • Comfortable on the command line and with basic Docker (docker compose up, reading container logs)
  • Able to read and edit YAML config files
  • Basic understanding of how a web service handles HTTP requests
  • Helpful but not required: regular expressions, a first look at PromQL

Software requirements

  • Laptop with 8 GB RAM minimum (16 GB recommended) and 10 GB free disk
  • Docker with Compose v2: Docker Desktop, OrbStack, Colima or Rancher Desktop (Linux: Docker Engine). Windows users need WSL2 and should clone the repo inside WSL
  • git, make and a modern browser
  • A GitHub account, for the Codespaces fallback if your laptop can’t run the stack (useful for locked-down corporate laptops)
  • The lab repo and a pre-flight check script will be shared a week before. Please run it and pull the images in advance; venue Wi-Fi can’t handle everyone downloading 2 GB at once

Everything used is open source: OpenTelemetry Collector, Prometheus, Alertmanager, Loki, Tempo, Grafana and k6, with a small Python (FastAPI) sample service.

Key takeaways

  • A working pipeline, in a repo you keep, that turns unstructured logs into structured events, metrics and traces
  • How to set a cardinality budget and enforce it in the collector, before it shows up on the bill
  • How to go from a metric to a trace to the log lines in one click
  • How to write SLO burn-rate alerts that page on real problems and ignore blips
  • How to unit-test alert rules and catch an alert that can never fire

About the instructor

Rakesh Mukherjee is CTO at Huntbase, where he builds an open threat-hunting platform and runs its observability stack. He has spent 19 years building security and SaaS platforms, from firewalls at Cisco and McAfee to XDR at EclecticIQ.

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

We care about site reliability, cloud costs, security and data privacy