Exercise 4 of 8 · Grafana · About 15 min

The Grafana board

Read a provisioned dashboard, inspect its queries, and add a panel that answers a new operational question.

Before you begin

Keep your stack running. In Codespaces, use labs/observability and the Ports tab for tool URLs; locally, use the extracted baodium-observability folder. Earlier exercises establish the signals used here.

Before you run it

Which panels should change under more traffic, and which under a slower dependency with the same number of clients?

GrafanaStep 1 of 4

Open the baseline dashboard

Open localhost:3007/d/baodium-checkout. Its data sources and four panels are provisioned from files in the kit.

What you should see

Request rate, error ratio, p95 latency in seconds, and active checkouts. Empty panels need traffic; they are not proof of health.

Help with this exercise

The histogram is in seconds. Setting a milliseconds display unit without converting the query changes the meaning of the number.

Need a hint or a troubleshooting path?

The histogram is in seconds. Setting a milliseconds display unit without converting the query changes the meaning of the number.

Check a common misconception

An attractive chart can still mislead. Units, query population and time range must agree before you draw a conclusion.

Before you move on

What to keep
Capture your p99 panel with its query, seconds unit and time range visible. Compare it with p95 for the same window.
What to explain
State the decision each panel supports. Explain why histogram quantiles are estimates and why low sample counts weaken conclusions.
A question to take further
Design one additional panel that would help decide whether to roll back a deployment. State the decision threshold and a limitation.

Write what you found

Explain which panel would distinguish increased traffic from a slower dependency.

Stop the stack when you finish

Continue to the next exercise with the stack running. When finished, stop and remove only this lab’s Compose services and volumes.

node lab.mjs down
Reference: Build Grafana dashboards ↗ (opens in a new tab)