Prometheus + Grafana
Prometheus scrapes and stores time-series metrics and evaluates alert rules; Grafana queries it with PromQL for dashboards, the standard open-source metrics pairing.
- Prometheus
- Grafana
- Learning curve
- Moderate
- Status
- Actively developed
- Reviewed
- November 2026
- Best for
- Kubernetes clusters and microservices that expose /metrics endpoints
- SRE teams defining SLOs and symptom-based alerts in PromQL
- Infrastructure monitoring with exporters for hosts, databases and proxies
- Teams that want self-hosted metrics without per-series vendor billing
- Not ideal for
- Per-user or business analytics
- Capacity planning over several years
Overview
Prometheus pulls metrics over HTTP from instrumented applications and exporters, stores them in its local time-series database, and evaluates recording and alerting rules written in PromQL; Alertmanager, from the same project, groups and routes the resulting alerts. Grafana connects to Prometheus as a data source and turns PromQL queries into dashboards. Prometheus is Apache-2.0 licensed and Grafana is AGPLv3. Teams reach for the pair as the default metrics layer for Kubernetes and service-based systems.
What's inside
Running both is straightforward. The learning is in PromQL (counters versus gauges, `rate` windows, histogram quantiles, vector matching) plus label design and writing alerts that page on symptoms rather than noise.
Prometheus
Infrastructure
Hosts, deploys or connects the system
Learning: Moderate
Status: Active
Grafana
Infrastructure
Hosts, deploys or connects the system
Learning: Easy
Status: Active
How it works
Prometheus discovers targets and scrapes their `/metrics` endpoints on an interval, appends samples to its TSDB, and evaluates rules that send alerts to Alertmanager; Grafana queries the same data over the Prometheus HTTP API.
- 1.
Infrastructure to backend
Service discovery (Kubernetes, Consul, cloud APIs or file-based) gives Prometheus its targets, and it scrapes each `/metrics` endpoint (exposed by client libraries or exporters such as node_exporter) every scrape interval.
- 2.
Backend to database
Samples, labelled with job, instance and relabelled target labels, are written to the write-ahead log and local TSDB, which compacts them into blocks and drops data past the retention period.
- 3.
Database to infrastructure
The rule engine evaluates recording rules that precompute expensive queries, and alerting rules that start firing once their condition has held for the `for` duration.
- 4.
Infrastructure to other
Firing alerts go to Alertmanager, which deduplicates, groups, inhibits and silences them, then routes notifications to receivers such as PagerDuty, Slack, email or webhooks.
- 5.
Other to database
Grafana sends PromQL range queries to the Prometheus HTTP API for each dashboard panel and renders the results, with template variables to filter by cluster, service or instance.
- 6.
Database to database
For long retention or global views, Prometheus remote-writes samples or uploads blocks to a store such as Thanos, Grafana Mimir or VictoriaMetrics, which Grafana queries with the same PromQL.
Strengths and drawbacks
Strengths
PromQL and the label model
Multi-dimensional labels plus functions like `rate`, `histogram_quantile` and `sum by (service)` make error ratios, latency percentiles and SLO burn rates expressible in a single query.
Instrumentation almost everywhere
Client libraries cover most languages, exporters exist for Linux hosts, PostgreSQL, Redis, Nginx, Kafka and more, and Kubernetes components, etcd and CoreDNS expose Prometheus metrics natively.
Self-contained and dependable
Each Prometheus server is a single binary with local storage and no external dependencies, so monitoring keeps working when the network or other infrastructure is degraded.
Alerts and dashboards as code
Rules are YAML in Git, tested with `promtool`, and Grafana dashboards can be provisioned from JSON files or generated with Jsonnet/Grafonnet or the Grafana Terraform provider.
Drawbacks
Cardinality is the main failure mode
Every unique label combination is a separate series; putting user IDs, raw URL paths or request IDs in labels multiplies memory use and can OOM-kill Prometheus. Label design needs review like schema design.
Single-node storage, limited retention
A Prometheus server is not clustered and its TSDB is not built for years of data. High availability means running duplicate servers, and long-term or cross-cluster queries need Thanos, Mimir or VictoriaMetrics: another system to operate.
Pull model gaps
Short-lived batch jobs and targets behind NAT are awkward to scrape; the Pushgateway is meant only for service-level batch jobs and is a common source of stale metrics when misused.
Metrics only, and dashboard sprawl
Logs and traces need other tools (Loki, Tempo, Jaeger, OpenTelemetry Collector), and without owners and naming conventions Grafana instances fill up with duplicated, broken dashboards.
Different licences
Prometheus is Apache-2.0 but Grafana, like Loki and Tempo, is AGPLv3; teams that modify Grafana and offer it to others as a service should check their obligations.
Scores
Editorial ratings out of 10, comparable across every stack in the guide. They are judgement, not benchmarks. How we score
- Speed of building
- 7.6 out of 10, catalog average 7.7
- Ease of learning
- 7.0 out of 10, catalog average 7.2
- Scalability
- 6.8 out of 10, catalog average 7.6
- Performance
- 8.0 out of 10, catalog average 7.5
- Maintainability
- 7.2 out of 10, catalog average 7.2
- Ecosystem
- 9.0 out of 10, catalog average 8.2
- Flexibility
- 6.4 out of 10, catalog average 7.4
How quickly a team ships features
Higher means easier to pick up
How far it grows before a redesign
Speed of the running application
How well the codebase ages
Libraries, hosting, docs and hiring
How many kinds of product it suits
How it scales
A single Prometheus scales vertically to a large number of active series; beyond one server, teams shard by cluster or team and add a long-term store for global queries and retention.
- Starting outMVP and first users
- One Prometheus and one Grafana (often from the kube-prometheus-stack Helm chart or Docker Compose), node_exporter on hosts, a few dashboards and local retention of a few weeks.
- GrowingReal traffic, a few engineers
- An HA pair of Prometheus servers per environment, clustered Alertmanager, recording rules behind heavy dashboards, and Grafana dashboards provisioned from Git.
- LargeHeavy traffic or data
- One Prometheus or Prometheus Agent per cluster, remote-writing or sidecar-uploading to Thanos, Grafana Mimir or VictoriaMetrics for long retention and cross-cluster queries.
- EnterpriseMany teams and regions
- A multi-tenant central metrics backend with per-team series and ingestion limits, SLO rules generated by tools such as Sloth or Pyrra, and Grafana with SSO, folders and per-team permissions.
Where it fits
Common projects, from best fit to worst.
Kubernetes cluster and workload monitoring
kube-state-metrics, cAdvisor and node_exporter metrics with ready-made dashboards and alerts cover nodes, Pods, deployments and capacity.
Great fit
SLO-based alerting for HTTP services
Request counters and latency histograms feed multi-window burn-rate alerts that page on user-facing impact instead of CPU spikes.
Great fit
Capacity planning over several years
Possible with downsampling in Thanos or a long-term store, but plain Prometheus retention and storage are not designed for it.
Workable
Per-user or business analytics
User, order or session IDs do not belong in Prometheus labels; an analytics database or event pipeline handles that data properly.
Poor fit
Alternatives
Similar stacks, and when you would choose them instead.
- ClickHouse analytics
Pick it for high-cardinality event data (per-request, per-user) that would overwhelm Prometheus labels, queried with SQL and still visualised in Grafana.
ComparePrometheus + Grafana with ClickHouse analytics - Elasticsearch + Node.js
Pick an Elasticsearch-based setup when the main need is searching and aggregating logs and documents rather than numeric time series.
ComparePrometheus + Grafana with Elasticsearch + Node.js
Sources
Reviewed on November 19, 2026 against the documentation below. Found something out of date? Suggest a correction. Read our methodology.
- Prometheus documentation
Official Prometheus docs.
- Prometheus: Storage
Local TSDB design, retention and remote storage integrations.
- Prometheus: Metric and label naming
Official guidance, including keeping label cardinality bounded.
- Alertmanager
Grouping, inhibition, silencing and routing of alerts.
- Grafana: Prometheus data source
Official docs for querying Prometheus from Grafana.
Related stacks
Stacks that share technologies with Prometheus + Grafana.
Docker Compose + PostgreSQL
Docker Compose runs PostgreSQL from the official image alongside application containers, the standard local development setup and a common single-server deployment.
- Docker
- PostgreSQL
Learning: Easy
Kubernetes + Helm
Helm charts package Kubernetes manifests as versioned, parameterised releases that can be installed, upgraded and rolled back.
- Kubernetes
- Helm
Learning: Hard
Ansible + Linux
Agentless configuration management with Ansible: YAML playbooks push idempotent changes over SSH to fleets of Linux hosts.
- Ansible
- Linux
Learning: Moderate