Skip to content

GreptimeDB vs. Prometheus

Prometheus keeps metrics on local disk; long-term retention at scale means adding a remote storage system such as Thanos or Mimir. GreptimeDB replaces the whole stack with one database.

Struggling to scale Prometheus?
There's a structural fix.

Prometheus is an open-source monitoring system: it scrapes metrics, stores them in a local TSDB, and queries them with PromQL. Long-term storage and horizontal scale come from a separate system such as Thanos or Mimir.

CHALLENGER

Prometheus + Thanos/Mimir

Pull-based scraper · PromQL only · 5-8 components to scale

  • High ops overhead at scale

  • Siloed metrics workflow for broader observability

  • Single-value series only, no multi-value rows

  • Deep analysis requires exporting to a separate data warehouse

VS

GREPTIMEDB

GreptimeDB

Metrics + Logs + Traces · SQL + PromQL · Native object storage

  • One database, compute-storage disaggregated scale-out

  • SQL + PromQL on top of object storage

  • Multi-value rows: tags, timestamp, and fields

  • Replace Prometheus + data warehouse with one system

Architecture comparison

Why scaling Prometheus means adding components - and why GreptimeDB doesn't.

Prometheus Stack

5-8 COMPONENTS

Prometheus (scraper + local TSDB)

remote write

Thanos Sidecar / Mimir Distributor

compact + index

Thanos Compactor + Store Gateway

query fan-out

Thanos Querier / Mimir Query Frontend

long-term

S3 object storage (via Thanos/Mimir)

GreptimeDB

1 DATABASE

Frontend node (stateless, auto-scale)

compute-storage disaggregation

Datanode (hosts regions, data on object storage)

native object storage

  • PromQL + SQL in same query
  • Metrics + Logs + Traces same engine
  • Scale compute and storage independently
Feature comparison
DimensionGreptimeDBPrometheusThanos / Mimir
Query languageSQL + PromQL (dual)PromQL onlyPromQL only
Data modelMulti-value rows: tags, timestamp, fieldsSingle-value time seriesSingle-value time series
Data typesMetrics + Logs + TracesMetrics onlyMetrics only
StorageNative object storage (S3, OSS, GCS)Local diskObject storage (Thanos Sidecar/Receive, Mimir)
Scaling modelCompute-storage disaggregation, stateless frontendsNo clusteringMulti-component (ops heavy)
OpenTelemetryNative OTLP (all signals)Native OTLP receiver (metrics)OTLP metrics supported (Thanos Receive, Mimir)
Continuous aggregationBuilt-in SQL aggregation + Flow streaming engineRecording rules (limited)Recording rules (limited)
High availabilityNative clustering with automatic failoverIdentical replicas; Alertmanager dedupes alertsMulti-component HA setup
LicenseApache 2.0Apache 2.0Thanos: Apache 2.0; Mimir: AGPLv3
Migration effortPromQL-compatible, remote write ready—Requires infra redesign

Thanos and Mimir have different architectures. This column summarizes common patterns.

High cardinality & series churn

Per-file

indexes, no global series index

A series exists only in the data files that cover its time range. Short-lived series from pod restarts and instance rotation stop affecting writes and recent queries once they go quiet, and TTL deletes them with their files.

OpenAI · Spark

Billions

series a year, one per Spark task

Millions to tens of millions of new series per day. In the speaker's words, none of the systems they already ran could handle that cardinality, so they chose GreptimeDB for Spark metrics, events, and logs.

Agent RCA Bench

130 vs 105

correct diagnoses out of 168: GreptimeDB vs. Prometheus + Loki + Tempo

504 end-to-end root cause investigations across six models and 14 incidents. Querying through GreptimeDB also read about 48% less input than querying Prometheus, Loki, and Tempo.

Migration path - as fast as one week

PromQL-compatible. Remote write ready. No rewrite required.

Read the migration guide→

Remote Write redirect

Docs

Point Prometheus remote_write to GreptimeDB endpoint. Zero downtime. Existing scrape configs untouched.

30 min

Grafana datasource

Docs

Replace Grafana datasource — GreptimeDB exposes a Prometheus-compatible API. Existing dashboards work immediately.

1 hour

Backfill history

Export historical data from Thanos snapshots or promtool. Bulk insert via gRPC without impacting live writes.

1-3 days

Decommission Thanos

After data validation, shut down Thanos Sidecar, Compactor, and Store Gateway one by one.

2 Weeks

OpenAI
OpenAI
Data Platform | Community Over Code EU 2026
One time series per Spark task means millions to tens of millions of new series per day, and billions over a year. OpenAI's data platform team keeps Spark metrics, events, and logs in GreptimeDB.
DeepXplore
DeepXplore
CEO
Queries that used to take longer in Thanos were now returning results much faster in GreptimeDB.

Stay in the loop

Join our community