Prometheus & Grafana
CNCF Graduated metrics stack. Prometheus pulls metrics on intervals, stores TSDB locally. Grafana queries via PromQL. Mimir / Thanos / VictoriaMetrics for HA + long-term storage. Replaced Graphite, Nagios, Sensu in modern stacks.
Overview
The default metrics stack on Kubernetes
Prometheus is the dominant metrics monitoring system in cloud-native, and Grafana is the dominant visualization layer on top of it. Together they replaced Graphite, Nagios, Sensu and Zabbix in most cloud-native deployments; by 2026 they are the default metrics stack on Kubernetes.
The stack has a simple shape. Apps and exporters expose a /metrics endpoint, and Prometheus scrapes it into its local TSDB (time-series database), where PromQL, its query language, reads it. Prometheus hands alerts to Alertmanager, and it can forward every sample by remote_write to Mimir, Thanos or VictoriaMetrics for HA and long retention. Grafana draws dashboards from Prometheus and from that long-term store.
The two projects come from different places. Prometheus originated at SoundCloud in 2012, inspired by Google's Borgmon, and became CNCF Graduated in 2018, the second project after Kubernetes. It combines a pull-based model, a time-series database and the PromQL query language. Grafana was first released in 2014 by what became Grafana Labs, and it is not a CNCF project. It is open source (AGPLv3 since 2021, Apache 2.0 before), with Grafana Cloud as the paid managed tier, and it visualizes Prometheus, Loki, Tempo, InfluxDB, Datadog and dozens of other data sources.
Key concepts
- Metric types — counter, gauge, histogram, summary
- PromQL essentials
- Service discovery and exporters
- Alertmanager — routing, grouping, silencing
- Recipe: kube-prometheus-stack on EKS
Interview questions
- Why pull-based instead of push-based metrics?
- How do you handle high cardinality and storage cost?
- Walk through migrating from Datadog to Prometheus + Grafana.
- How do you build effective alerts in Prometheus?
- Quick-fire interview answers — Prometheus + Grafana essentials.
Sign up free to read the full topic
More Observability topics
Start free on Cariara · Coding problems · System design studio