Prometheus

active

by Prometheus Authors (CNCF) · since 2012 · also known as Prometheus TSDB

CNCF-graduated pull-based monitoring system with a local TSDB, PromQL and alerting rules.

time-seriesdatabase engineopen source (permissive)mature

Overview

Prometheus is the default open-source metrics system for cloud-native infrastructure: it scrapes HTTP endpoints found through service discovery, stores samples in a compact local TSDB, and evaluates PromQL for dashboards and alerting rules. The 3.x line, started in late 2024, brought a new UI, OpenTelemetry (OTLP) ingestion, UTF-8 metric names and native histograms. A server is deliberately not clustered: long retention, global views and HA deduplication are delegated to remote-write backends such as Thanos, Mimir or VictoriaMetrics. Use it for operational metrics, not as a general-purpose time-series database.

Strengths & trade-offs

Strengths

  • +Pull-based scraping with service discovery for Kubernetes, EC2, Consul and many others
  • +PromQL is the lingua franca of metrics and is accepted by most metrics backends
  • +Single static Go binary with no external dependencies
  • +Alerting rules plus Alertmanager for routing, grouping and silencing
  • +Huge exporter ecosystem and native instrumentation in Kubernetes and most cloud-native software

Trade-offs

  • −No clustering or HA deduplication; global, long-term storage needs Thanos, Mimir or similar
  • −Local retention is bounded by a single node's disk
  • −High-cardinality labels (user or request IDs) blow up memory
  • −Not designed for events, logs or exact per-request data such as billing

Great for

  • +Kubernetes and microservice monitoring
  • +SLO and symptom-based alerting
  • +Host and infrastructure metrics via exporters
  • +Short-term metrics store feeding a long-term backend via remote write

Think twice for

  • −Multi-year metric retention on its own
  • −Billing data that must be 100% accurate
  • −Logs and traces
  • −High-cardinality event analytics

Capabilities

Native or official first-party support · 4 of 25 tracked

✓TTL / expiry
✓Durable persistence
✓Compression
✓Streaming ingest
–Transactions
–Joins
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–Pub/Sub
–Columnar storage
–In-memory
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
Manual
Multi-region
No
Transactions
None
Consistency
Eventual
Schema
Schemaless
Architecture
Single node
Query languages
PromQL

One server handles millions of active series, but scaling beyond that means functional sharding or a remote-write backend.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

available on · AWS · Google Cloud · Azure

Ecosystem

apis & protocolsHTTP query API, Remote write, Remote read, OTLP, Exposition format scraping
client languagesGo, Java, Python, Ruby, Rust
used bySoundCloud

Alternatives to Prometheus

Compare all→
VictoriaMetricsTime-Series26.8

Resource-frugal, Prometheus-compatible metrics database, run as a single binary or a sharded cluster.

prometheus vs victoriametrics →
ThanosTime-Series13.1

Sidecar-plus-object-storage layer giving Prometheus global queries, HA dedup and long retention.

prometheus vs thanos →
Grafana MimirTime-Series15.8

Grafana Labs' horizontally scalable, multi-tenant long-term store for Prometheus and OTLP metrics.

prometheus vs grafana-mimir →
M3DBTime-Series4.2

Uber-born distributed TSDB and aggregator for Prometheus-scale metrics with tunable replication.

prometheus vs m3db →
InfluxDBTime-Series51.0

Purpose-built time-series database, rebuilt in Rust on Arrow, DataFusion and Parquet for version 3.

prometheus vs influxdb →
GraphiteTime-Series25.2

Veteran metrics stack: Carbon ingestion, Whisper files and the render API that shaped modern dashboards.

prometheus vs graphite →

Prometheus FAQ

What is Prometheus?

Prometheus is a time-series database by Prometheus Authors (CNCF), first released in 2012. Prometheus is the default open-source metrics system for cloud-native infrastructure: it scrapes HTTP endpoints found through service discovery, stores samples in a compact local TSDB, and evaluates PromQL for dashboards and alerting rules. The 3.x line, started in late 2024, brought a new UI, OpenTelemetry (OTLP) ingestion, UTF-8 metric names and native histograms. A server is deliberately not clustered: long retention, global views and HA deduplication are delegated to remote-write backends such as Thanos, Mimir or VictoriaMetrics. Use it for operational metrics, not as a general-purpose time-series database.

Is Prometheus open source?

Yes. Prometheus is open source. License: Apache License 2.0.

Does Prometheus support ACID transactions?

No. Prometheus does not provide ACID transactions; its consistency model is eventual.

Does Prometheus scale horizontally?

Prometheus has no built-in sharding; scaling out means partitioning data in your application. It is comfortable at small scale (≤ 100 GB).

How can I run Prometheus?

You can self-host it. Managed offerings include Amazon Managed Service for Prometheus, Google Cloud Managed Service for Prometheus, Azure Monitor managed service for Prometheus and Grafana Cloud Metrics. It is available on AWS, Google Cloud and Azure.

What is Prometheus best for?

Prometheus is a strong fit for kubernetes and microservice monitoring; SLO and symptom-based alerting; and host and infrastructure metrics via exporters. Think twice for multi-year metric retention on its own.

What are the best alternatives to Prometheus?

Common alternatives to Prometheus include VictoriaMetrics, Thanos, Grafana Mimir, M3DB and InfluxDB. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

How popular is Prometheus?

Prometheus ranks #9 of 844 databases on the WhichDB Score (70.8/100), and #1 among time-series databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.