Metrics and Observability: Prometheus + Grafana for Backend Engineers
Back
Advanced Plus

Metrics and Observability: Prometheus + Grafana for Backend Engineers

After the quality pipeline course, the student can verify a project before merge: make qa, tests, static analysis, build, healthchecks, and architecture guards. But a green pipeline does not answer how the system behaves under real load. An endpoint can pass tests and still be slow. A queue can build backlog. An Octane worker can slowly grow memory usage. Users can suffer from p95 latency while the average still looks harmless. This course moves the student from intuition to data. Using the existing Laravel/Filament project, the student adds Prometheus and Grafana, exposes /metrics, instruments HTTP routes, queues, and runtime signals, builds a dashboard, defines SLI/SLO, and learns to connect graphs to action. Metrics are not decoration here. Every signal must answer an operational question: how fast, how many errors, what is happening to the queue, what is happening to the worker, and when someone needs to react. The main outcome is a new engineering habit. An architecture decision can no longer be defended with "it feels faster". The student needs a baseline, a metric, a graph, a causal explanation, a tradeoff, and the remaining risk.

Docker Laravel Laravel Octane Make Observability Backend Metrics Prometheus Grafana PromQL Metrics Endpoint HTTP Metrics Queue Metrics SLI/SLO Alerting Dashboards

Course outline

Published version: modules, lessons, and duration.

01

A Measurable Starting Point

  1. 1 What We Already Check but Do Not Measure Yet
    80 min
  2. 2 First measurement workflow via Make
    85 min
02

Why Backend Engineers Need Metrics

  1. 1 Intuition vs Data
    70 min
  2. 2 Logs, Metrics, Traces, and Analytics
    80 min
  3. 3 RED and USE Models
    85 min
03

Prometheus Under the Hood

  1. 1 Pull Model, Scraping, and Time Series
    70 min
  2. 2 Labels and Cardinality
    65 min
  3. 3 Counter, Gauge, Histogram, and Summary
    75 min
04

Instrumenting Laravel

  1. 1 The `/metrics` Endpoint Without Magic
    75 min
  2. 2 HTTP Metrics for Laravel Routes
    85 min
  3. 3 Queue, Jobs, and Background Metrics
    80 min
  4. 4 Octane Worker and Runtime Metrics
    80 min
05

Grafana as a working dashboard

  1. 1 Datasource and the first dashboard
    65 min
  2. 2 Percentiles instead of average
    70 min
  3. 3 Dashboard as operational story
    60 min
06

Data interpretation and engineering solutions

  1. 1 How not to be fooled by a graph
    65 min
  2. 2 Validation of Octane solution by numbers
    75 min
  3. 3 Capacity, saturation and backend limits
    70 min
07

SLI, SLO and alerting

  1. 1 SLI/SLO/SLA without enterprise fog
    70 min
  2. 2 Alerts without noise
    75 min
  3. 3 Signal runbook
    70 min
08

Final observability system

  1. 1 Observability map of the project
    75 min
  2. 2 Final Metrics Defense
    80 min