- Grafana and Prometheus are provisioned for the lab.
- You can access the Order Processing UI to generate test traffic.
- Grafana docs: https://grafana.com/docs/
- Prometheus docs: https://prometheus.io/docs/
- Apply the dashboard ConfigMap Provision the provided dashboard ConfigMap so the “Golden Signals” dashboard is available in Grafana:
- Add the “Golden Signals — At-a-Glance Summary” row Create a new row in the Golden Signals dashboard to host high-level KPIs:
- Enter Edit mode for the dashboard.
- Add → Row.
- Name it: “Golden Signals — At-a-Glance Summary” (or similar).
- Save the row (it will start empty).
- Single-value panels (Stat / Gauge / Bar Gauge) Single-value panels show current status instantly. Use them for war-room views, executive glance, and alert triage. Pair them with time-series panels for history and root-cause analysis.
Use Instant queries for single-value panels to fetch only the latest value faster and reduce query cost.
- Visualization: Stat
- Stat styles → Graph mode: None (disable mini-graph)
- Query mode: Instant
- Thresholds (example): Green < 5, Yellow 5–15, Red > 15 (adjust to your traffic)
- Visualization: Gauge
- Unit: Percent
- Thresholds (example): Green 0–1, Yellow 1–5, Red > 5
- Single-value vs. Time-series — when to use each
- Single-value (Stat/Gauge/Bar Gauge): Fast current-state visibility (good for SREs, on-call, executives).
- Time-series: Show trends, spikes, and durations — essential for troubleshooting when an incident started and how it evolved.
- Latency and service comparison panels (P95) Add P95 latency stat panels for backend and frontend. Note: units differ in this lab—backend metrics are in milliseconds, frontend metrics in seconds. Set units and thresholds accordingly.
- Visualization: Stat
- Graph mode: Area (optional)
- Unit: Time → milliseconds
- Decimals: 0
- Thresholds: Green < 400 ms, Yellow 400–500 ms, Red > 500 ms
- Visualization: Stat
- Graph mode: Area (optional)
- Unit: Time → seconds
- Decimals: Auto (or tune as needed)
- Thresholds: Green < 0.4 s, Yellow 0.4–0.5 s, Red > 0.5 s
- Kubernetes infrastructure health indicators Add Kubernetes single-value panels to monitor basic infra health: pod readiness per deployment and pod restarts.
- Order frontend ready replicas:
- Order backend ready replicas:
- Visualization: Bar gauge
- Orientation: Horizontal
- Display mode: Basic
- Show unfilled area: No (optional)
- Field overrides: set min/max per deployment (e.g., frontend max = 2, backend max = 4)

- Visualization: Stat
- Display: Background solid, Graph mode: None
- Color mode: Horizontal with thresholds
- Example thresholds: Green = 0, Yellow = 1, Red = 2+
- Move panels into the At-a-Glance row and save
- Move the panels created above into the “At-a-Glance” row.
- Save the dashboard (Dashboard settings → JSON model → Save / Submit).
- Verify values in your lab environment; panels should show:
- Request rate stats for frontend and backend
- Error rate gauges for frontend and backend
- Latency (P95) stats for frontend (seconds) and backend (milliseconds)
- Pod readiness bar gauge and pod restart stats

- Choosing panel types — guidance
- Gauge: Best when you want a visual arc showing utilization relative to a max (e.g., CPU utilization).
- Stat: Use when you need a concise numeric value (counts, rates) without arc emphasis.
- Time series: Always use for trends, distributions, and incident investigation.
- Bar Gauge: Best for showing relative counts (e.g., ready replicas across deployments).
- Panel summary (quick reference)
| Panel | Visualization | Key PromQL (short) | Unit | Example thresholds |
|---|---:|---|---|---|
| Backend request rate | Stat |
sum(rate(...[5m]))| req/s | Green < 5, Yellow 5–15, Red > 15 | | Frontend request rate | Stat |sum(rate(...[5m]))| req/s | same as backend | | Backend error rate | Gauge |100 * (sum(rate(...4xx/5xx...))/sum(rate(...)))| % | Green 0–1, Yellow 1–5, Red > 5 | | Frontend error rate | Gauge |100 * (...)| % | same as backend | | Backend P95 latency | Stat |histogram_quantile(0.95, sum by (le)(rate(..._bucket...)))| ms | Green < 400 ms, Yellow 400–500 ms, Red > 500 ms | | Frontend P95 latency | Stat |histogram_quantile(0.95, ...)| s | Green < 0.4 s, Yellow 0.4–0.5 s, Red > 0.5 s | | Pod readiness per deployment | Bar Gauge |kube_deployment_status_replicas_ready{...}| replicas | Use min/max overrides | | Pod restarts (15m) | Stat |sum(increase(kube_pod_container_status_restarts_total[15m]))| count | Green 0, Yellow 1, Red 2+ |
- Grafana: https://grafana.com/docs/
- Prometheus: https://prometheus.io/docs/
- PromQL basics: https://prometheus.io/docs/prometheus/latest/querying/basics/
- Kubernetes metrics with kube-state-metrics: https://github.com/kubernetes/kube-state-metrics