Skip to main content
Welcome to the lab. This lesson guides you through an already-built Grafana dashboard so you can learn what Grafana provides, how to navigate the UI, and what production monitoring looks like for Kubernetes applications. This is a high-level overview: you don’t need deep expertise yet. Throughout the course, this dashboard will be extended step by step. What you should take away from this lesson:
  • 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.
A simple Kubernetes check that helps confirm deployments and pods:
Representative output (simplified):
These commands show an application with a frontend (2 replicas) and a backend (4 replicas).

Logging in to Grafana and finding the dashboard

  1. Open the Grafana URL provided in the lab interface.
  2. Log in with the temporary admin credentials shown for this lab.
  3. Navigate to Dashboards → Search and open “Order Processing - Four Golden Signals”.
The dashboard aggregates panels for the Four Golden Signals: Traffic, Errors, Latency, and Saturation. Each row contains panels that focus on a signal (for example, request rates in Traffic or container CPU in Saturation).

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.
Panels in the “Four Golden Signals” dashboard typically map like this:
  • 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.
A Grafana dashboard screenshot titled "Order Processing - Four Golden Signals" showing container saturation metrics — panels for container memory and CPU usage, memory percentage, and CPU throttling with charts and a list of container names and values.
The image above highlights saturation panels (container memory, container CPU, memory percentage, CPU throttling). These help you determine whether pods or nodes are reaching capacity. Why percentiles matter:
  • 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
  1. 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.
  2. 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:
Verify the change:
Representative verification output:
What to observe in Grafana:
  • 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.
Why this happens:
  • 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.
Expected per-pod metric increases:
  • CPU utilization (percentage and absolute CPU cores used)
  • Memory usage
Metrics that typically will not change solely because you scaled backend replicas:
  • 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:
Verify:
Representative verification:
Observations in Grafana:
  • 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.
The dashboard below illustrates request rates, errors, latency, and readiness changes when backend capacity is lost:
A dark Grafana dashboard titled "Order Processing - Four Golden Signals" showing panels for current frontend/backend request rates (0.688 and 0.438 req/s), error rates, P95 latencies, pod readiness and restarts. The UI uses green and red indicators and gauges to summarize service health.

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.
Observability complements logs and Kubernetes health checks. Metrics-driven dashboards make it fast to detect and correlate issues (for example, increased latency coinciding with reduced replica count), so you can take the right corrective actions.
Congratulations — you’ve completed this lab. Next, we’ll dive deeper into Prometheus fundamentals and start instrumenting and querying the metrics that power dashboards like this one.

Watch Video