Skip to main content
You already have the fundamentals: you know what metrics are, understand the four golden signals (latency, traffic, errors, saturation), and how SLIs/SLOs/SLAs define what “healthy” looks like. The next step is choosing and deploying the monitoring tooling that collects, stores, and visualizes those metrics.
A slide titled "Monitoring Fundamentals – Complete" showing three panels: example metrics (backend HTTP duration, pod restarts, CPU utilization, 5xx rate), a framework for useful metrics (traffic, errors, latency, saturation), and definitions of healthy targets (SLAs, SLOs, SLIs).
Overview: Prometheus for collection and storage, Grafana for visualization. Below we explain how each fits into your observability stack and why they’re a popular paired solution for cloud-native systems. Prometheus: origins and core concepts
  • Born at SoundCloud in 2012 to solve monitoring for dynamic, containerized architectures.
  • Influenced by Google’s Borgmon: a dimensional metrics model where each metric has key/value labels.
  • Uses PromQL (Prometheus Query Language) to query time series data.
Example of Prometheus’ dimensional model:
Example applied to HTTP request counts:
Why labels matter: instead of proliferating metric names for every endpoint/method combination, Prometheus keeps a single metric name and uses labels to slice and aggregate data efficiently. Prometheus stores time-stamped samples and exposes a rich query surface via PromQL: https://prometheus.io/docs/prometheus/latest/querying/basics/ Prometheus and Kubernetes Prometheus adoption accelerated with Kubernetes. In 2016 Prometheus became the second CNCF project after Kubernetes; together they form a natural fit:
A slide showing the Prometheus logo labeled “Standard for Monitoring” connected by arrows to a Kubernetes box labeled “Standard for Container Orchestration,” with SoundCloud and Cloud Native Computing Foundation logos and a timeline marking 2012 and 2016.
  • Designed for dynamic, ephemeral workloads (pods come and go).
  • Works equally well for processes on VMs, containers outside Kubernetes, or static targets.
How Prometheus discovers and ingests metrics Applications and exporters expose metrics over HTTP (commonly at /metrics). Prometheus polls (scrapes) these endpoints on a schedule defined in its configuration. Scrape jobs group related targets (for example, replicas behind a service). Simple static scrape config:
In production Kubernetes deployments you’ll usually use Kubernetes service discovery instead of static targets so Prometheus can follow pods as they scale or move.
Prometheus is primarily pull-based: it scrapes HTTP endpoints. For short-lived processes that can’t be scraped, consider the Pushgateway (https://prometheus.io/docs/practices/pushing/) — but use it sparingly, since pushing changes metric semantics and can introduce lifecycle complexity.
Grafana: visualization and data-source flexibility
  • Started in 2014 as a fork of Kibana; evolved into a powerful, data-source-agnostic visualization platform.
  • Connects to many backends: Prometheus, Elasticsearch, InfluxDB, CloudWatch, and more.
  • Grafana Labs maintains open-source Grafana and provides commercial offerings (Grafana Cloud, enterprise features).
A simple diagram showing Grafana on the left, maintained by Grafana Labs in the center, which operates on OpenCore to the right and builds commercial products below.
Why pair Prometheus + Grafana?
  • Prometheus: efficient time-series collection, dimensional labels, PromQL.
  • Grafana: flexible dashboards, templating, alerting integrations, multi-datasource views.
  • Together they form a widely adopted OSS monitoring stack that gives you control over retention, cost, and scaling — at the expense of managing the infrastructure yourself.
Comparison at a glance Observability pipeline (summary)
  • Applications/exporters expose Prometheus-format metrics at HTTP endpoints.
  • Prometheus scrapes those endpoints, timestamps samples, and stores them in its TSDB.
  • Grafana connects to Prometheus as a data source and visualizes metrics in dashboards.
In short: applications/exporters → Prometheus (ingest & store) → Grafana (visualize & alert). Recommendations and next steps
  • Start by instrumenting key endpoints and services with Prometheus-style metrics (use labels consistently).
  • Use Kubernetes service discovery for scraping in cluster deployments.
  • Prototype dashboards in Grafana focusing on your four golden signals and SLO-backed alerts.
  • Decide early whether to self-manage retention/scale or use hosted options (e.g., Grafana Cloud) to simplify operations.
Useful links and references You’ll soon deploy Prometheus and Grafana into a Kubernetes cluster from scratch — instrumenting services, configuring scrape jobs and service discovery, and building dashboards to monitor what matters.

Watch Video

Practice Lab