Skip to content

GreptimeDB vs. Apache Doris

Both keep metrics, logs, and traces in one database. In Doris, telemetry lives in SQL tables, and a counter rate takes a LAG() window query. GreptimeDB understands telemetry semantics: PromQL and Remote Write for metrics, and OTLP, Loki Push, and Elasticsearch Bulk endpoints for ingestion.

Both store all three signals.
The difference is whether the database speaks telemetry.

Apache Doris is a real-time analytics (MPP) database. Its observability solution, DOG Stack (Doris, OpenTelemetry, Grafana), stores logs, traces, and metrics as Doris tables. The OpenTelemetry Collector's Doris Exporter writes them, and Grafana queries them with SQL.

CHALLENGER

Apache Doris

Telemetry as SQL tables

  • Metrics are rows in otel_metrics_* tables, one table per OTel metric type: "you cannot query by metric name alone — you also need to know which table to query." Docs

  • Counter rates are hand-written SQL: "Prometheus's rate() is implemented in Doris with the LAG() window function." Docs

  • Writes go through the OpenTelemetry Collector. The Doris Exporter is at alpha stability. Exporter

  • No PromQL, Remote Write, Loki Push, or Elasticsearch Bulk endpoint. The Collector scrapes Prometheus metrics into otel_metrics_*. Docs

VS

GREPTIMEDB

GreptimeDB

Telemetry semantics in the database

  • Each Prometheus metric is a table, queried by name. rate(), increase(), and histogram_quantile() run as PromQL, and Grafana connects through its Prometheus data source. Docs

  • Prometheus Remote Write endpoint, including v2 native histograms. Prometheus, Alloy, and vmagent write directly. Docs

  • Native OTLP endpoint for metrics, logs, and traces. SDKs send OTLP directly; a Collector is optional. Docs

  • Loki Push API and Elasticsearch _bulk endpoints. Alloy, Fluent Bit, Vector, Filebeat, and Logstash connect through the write protocols they already use. Loki · Elasticsearch

Architecture comparison

Doris receives telemetry through a Collector exporter and serves it as SQL. GreptimeDB receives telemetry protocols directly.

DOG Stack

COLLECTOR + SQL

Agents and SDKs → OpenTelemetry Collector

receive + convert

Doris Exporter

write

Doris FE + BE

store + compute

Grafana Doris App / MySQL data source

SQL queries

GreptimeDB

1 DATABASE

Frontend node (OTLP, Remote Write, Loki, ES Bulk, PromQL, SQL)

query + ingest gateway

Datanode (hosts regions, data on object storage)

native object storage

  • PromQL + SQL support out of the box
  • Logs, metrics, and traces in one engine
  • Scale compute and storage independently
Feature comparison
DimensionGreptimeDBApache Doris
PositioningObservability database for metrics, logs, and tracesReal-time analytics (MPP) database; observability through DOG Stack (docs)
Metrics querySQL + PromQLSQL; rate() is written with LAG() (docs)
Metric modelOne logical table per metric, labels as tag columnsOne table per OTel metric type; metric name is a column
Prometheus Remote WriteNative endpoint, including v2 native histogramsNo; the OpenTelemetry Collector scrapes Prometheus targets (docs)
OpenTelemetryNative OTLP endpoint for metrics, logs, and tracesOpenTelemetry Collector + Doris Exporter (alpha) (docs)
Loki Push APINative endpointNo
Elasticsearch Bulk APINative _bulk endpointNo
Log shippersFluent Bit, Vector, Alloy, Filebeat, and Logstash over their existing Loki, Elasticsearch, or OTLP outputsDoris plugins for Logstash, Beats, and Fluent Bit
Trace querySQL + Jaeger Query APISQL; trace view in the Grafana Doris App (docs)
Signals in one databaseYesYes, as Doris tables
Scaling (self-managed)Compute-storage disaggregation on object storage; Region migration and online split/merge in open source, automatic rebalancing in EnterpriseCoupled mode with automatic replica balancing, or compute-storage decoupled mode since 3.0 (docs)
LicenseApache 2.0Apache 2.0

Migration path

Keep collectors in place and move signal by signal.

Read the migration guides→

Switch the Collector exporter

Docs

Replace the Doris Exporter with an OTLP/HTTP exporter pointing at GreptimeDB. Prometheus, Loki, and Elasticsearch-style shippers can point at GreptimeDB directly.

30 min

Move dashboards

Docs

Replace LAG()-based rate panels with PromQL through the Prometheus data source. SQL panels can keep a MySQL data source.

1-3 days

Backfill historical data

Export history from Doris as Parquet and bulk load it into GreptimeDB.

1-3 days

Retire the exporter path

After verification, remove the Doris Exporter pipeline and the SQL that re-implements PromQL functions.

1-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. OpenAI's data platform team keeps Spark metrics, events, and logs in GreptimeDB. The data is stored as Parquet on S3, so Spark and Trino can read it directly.

Stay in the loop

Join our community