BM: Baca dalam Bahasa Melayu
World O4: The Diary & One Order
Exemplars and correlation
You will learn: to jump from a spike on a graph to the very order that caused it.
Checked with Prometheus 3 on 1 Nov 2026
The problem
Press Run. Which service got slow, and when?
The graph shows kedai-pay getting slow from 10m. But which order was slow? A graph can’t name one.
Watch
What the pay service exposes, in OpenMetrics text. Tap the part that names one real order.
0 of 1 found
An exemplar: A sample trace ID pinned to a metric point. Click the dot on the graph, open that very order's trace. pins one sample order to a metric. Grafana draws it as a dot you can click.
Try it
Where you start at the top. Put these in order. Use the arrows, or drag.
- Exemplar dot: trace 3c9a51e0…
- Trace: SELECT payments took 2.8 s
- Graph: p95 of kedai-pay jumps at 10m
- Logs with that trace_id: slow query on payments
Put the jumps in order, from the first clue to the reason.
Predict
Prometheus does not keep exemplars by default. Which flag turns them on?
Pick one answer.
Check
Drag a card into a box. Or tap the card, then tap the box.
Which signal answers each question best?
You did it!
You can now jump from a graph to one order’s trace and logs.
Go deeper (optional)
In Grafana, the Prometheus data source can link an exemplar’s trace_id to your trace store. A Loki data source can turn trace_id in a log line into a link too. Then the jump is one click, both ways.
Bahasa Melayu
Graf tunjuk kedai-pay jadi lambat dari minit 10. Tapi pesanan mana yang lambat? Graf tak boleh namakan satu pun.
Exemplar lekatkan satu contoh pesanan pada metrik. Grafana lukisnya sebagai titik yang boleh diklik.
Susun lompatan itu, dari petunjuk pertama ke sebabnya.
Prometheus tak simpan exemplar secara asal. Flag mana yang hidupkannya?
Isyarat mana paling sesuai jawab setiap soalan?
Kini anda boleh lompat dari graf ke trace dan log satu pesanan.
You finished this before. Practice is always welcome!
Official docs: Prometheus feature flags (exemplar storage) · Grafana: introduction to exemplars · OpenTelemetry: signals
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?