- Why observability matters for Kubernetes applications.
- How Grafana structures dashboards (rows, panels) and how those map to common observability concepts.
- How simple infrastructure changes (scale events) surface in metrics and dashboards.
Use the lab-provided Grafana instance to explore. Log in with the temporary admin credentials shown in the lab interface. Do not reuse default admin credentials in production.
What is observability?
Observability gives you the ability to detect, understand, and act on application and infrastructure behavior before users report problems. In Kubernetes, observability typically combines:- Metrics (Prometheus-style time-series): request rates, latencies, CPU/memory, error rates.
- Logs: detailed event/context when investigating incidents.
- Traces: distributed request flow and latency attribution.
Logging in to Grafana and finding the dashboard
- Open the Grafana URL provided in the lab interface.
- Log in with the temporary admin credentials shown for this lab.
- Navigate to Dashboards → Search and open “Order Processing - Four Golden Signals”.
Inspecting the Four Golden Signals dashboard
Grafana organizes visualizations into panels and groups panels into rows. Common visualization types you will see:- Time-series charts: trends over time (requests/sec, CPU usage).
- Heatmaps: distribution over time and latency buckets.
- Gauges and single-stat panels: quick numeric summaries (e.g., P95 latency).
- Tables and lists: per-pod or per-endpoint breakdowns.
- Traffic: request rate per endpoint, pod network traffic.
- Errors: error rate, HTTP status code distribution.
- Latency: P50/P95/P99 request durations, latency heatmaps.
- Saturation: container CPU, memory, and CPU throttling.

- Percentiles (P50, P95, P99) reveal tail latency that averages hide.
- Heatmaps show latency distributions across many requests and over time.
Quick diagnostics: interpreting traffic and latency
Quiz: interpret common patterns-
A time-series panel in the Traffic row shows a sudden spike then a rapid return to baseline. What is the likely cause?
Answer: A transient traffic event (e.g., burst of user activity or a short load test). A permanent change would show a sustained plateau; crashes or metrics bugs typically show different signatures. -
Observed latency percentiles: P50 = 150 ms, P95 = 400 ms, P99 = 2000 ms. What does this mean?
Answer: Most users (up to 95%) see sub-400 ms responses, but the slowest 1% experience ~2 seconds — an important tail that may affect user experience or indicate specific long-running requests.
Exercise — Scale the backend down to one replica and observe metrics
Scale the backend to 1 replica:- Fewer Prometheus scrape targets / fewer pod-level metrics.
- The remaining backend pod’s CPU and memory usage will often increase (same traffic concentrated on fewer pods).
- Latency and error rates for the backend may increase if the single replica becomes saturated.
- Saturation panels might cross thresholds (turning yellow/red) depending on configured alerts.
- Prometheus scrapes are often configured per-pod; scaling down reduces targets.
- The same load on fewer replicas increases per-pod utilization.
- Liveness/readiness probes continue per pod; fewer pods means fewer probe results to aggregate.
- CPU utilization (percentage and absolute CPU cores used)
- Memory usage
- Number of frontend pods.
- Overall external traffic rate (unless client behavior changes).
- Total cluster-level resource consumption if other services absorb load.
Scaling to zero simulates a full service outage. Only scale deployments to zero in a lab or when you intentionally take a service offline. In production, ensure proper change control and alerting.
Kill the backend (scale to zero) and observe impact
Scale the backend to zero to simulate an outage:- Backend time-series/heatmaps will stop producing data for pod-level metrics; panels may display “no data” or zeros depending on queries and panel settings.
- Frontend error rates can spike as requests to the backend fail.
- Backend latency panels will lack valid latencies due to absent successful responses.
- Overall system health indicators (gauges, readiness lists) will reflect the outage.

Value of metrics-driven observability
Which statement best describes the value demonstrated in this lab?- Observability lets you immediately see the impact of infrastructure changes and correlate metrics with events.
Useful links and references
- Grafana documentation: https://grafana.com/docs/
- Prometheus documentation: https://prometheus.io/docs/
- Kubernetes basics: https://kubernetes.io/docs/concepts/overview/what-is-kubernetes/