# GreptimeDB

GreptimeDB is an open-source observability database that unifies metrics, logs, and traces in one columnar engine over object storage.

Canonical page: https://ourlocalhost.com/app/8954/greptimedb

## Description

GreptimeDB is an open-source observability database that unifies metrics, logs, and traces in one columnar engine over object storage. It correlates signals sharing common identifiers like service, host, or trace ID in SQL, integrates with OpenTelemetry, Prometheus, and Kubernetes conventions, and delivers sub-second queries with major storage cost savings. It suits homelab and infrastructure teams wanting a single database for all observability data on their own hardware.

## Platform availability

Available on 3 of 10 platforms: Mac, Linux, Any server.

## Desktop and other devices

Mac, Linux.

## Health score

80/100 (Excellent), based on 3 of 4 factors.
- Maintained: 100 (last commit 0 days ago)
- Popular: 77 (6,867 GitHub stars)
- Easy to install: 45 (3 install platforms, install notes)

## Links

- desktop: https://github.com/greptimeteam/greptimedb/releases/latest
- Documentation: https://docs.greptime.com/
- Official website: https://greptime.com/
- GitHub: https://github.com/greptimeteam/greptimedb

## Common questions

### Which ports does GreptimeDB expose and what do they serve?

A standalone instance exposes four ports: 4000 (HTTP, including the dashboard), 4001 (gRPC), 4002 (MySQL), and 4003 (PostgreSQL). The Docker quickstart binds these with -p 127.0.0.1:4000-4003:4000-4003, so they are only reachable locally by default.

### How can I keep my existing Prometheus setup and Grafana dashboards while migrating?

GreptimeDB accepts Prometheus remote write on the write path and serves PromQL, plus the Jaeger API for traces, on the read path. You can migrate ingestion one signal at a time without rebuilding collectors, and Grafana can query via MySQL/PostgreSQL wire protocols or PromQL.

### Can I ingest logs and traces from OpenTelemetry collectors?

Yes. OTLP ingestion writes spans to opentelemetry_traces and log records to opentelemetry_logs; both carry trace_id, so you can correlate them with a SQL join. Loki Push and Elasticsearch Bulk are also supported for log ingestion.

### Where does GreptimeDB store data, and does it require object storage?

Object storage (S3, Azure Blob, GCS) is the primary store, with columnar compression cutting storage cost by up to 50x. For local testing, the quickstart Docker run mounts a local directory (greptimedb_data) as the data volume.

### Which release channel should I run for a self-hosted deployment?

The stable channel is recommended for production; canary includes pre-releases and nightly is a weekly snapshot of the main branch.

## Alternatives

- Apache IoTDB
- CrateDB
- InfluxDB: InfluxDB is an open source time series database with no external dependencies.
- Prometheus: Prometheus is a systems and service monitoring system.
- SingleStore
- TDengine
- Timescale
- questdb: QuestDB is an open-source, low-latency time-series SQL database built on open data formats.

---
Source: Our Local Host (https://ourlocalhost.com/app/8954/greptimedb), the self-hosted and open-source app directory.
