Find the slow hop with logs, metrics, and traces.
In this interactive Infrastructure lesson from Stencel Academy you don't just read — you type real commands like kubectl logs deploy/promptd --tail=5, curl -s lb-01:9090/metrics | grep latency, trace 4f9d21c7 and watch the machine respond on a live, animated map. It is part of the free How Infrastructure Works course.
Builds on: CI/CD Pipelines.
kubectl logs deploy/promptd | grep ERROR — Filter the event stream for the bad news.curl -s lb-01:9090/metrics | grep requests_total — Counters only go up — rates come from deltas.psql -h db-01 -c 'EXPLAIN SELECT * FROM prompts WHERE user_id = 42' — Ask the database how it plans to answer.psql -h db-01 -c 'CREATE INDEX ON prompts (user_id)' — The fix the trace pointed at.