selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

greptimedb logo

Self-host greptimedb

v1.3.0

Metrics, logs, traces in one columnar telemetry store

ReleaseOpen CoreApache-2.0
curl -fsSL https://raw.githubusercontent.com/greptimeteam/greptimedb/main/scripts/install.sh | sh -s v1.2.1
Updated2 weeks ago
LanguageRust
Setup difficultyModerate
Stars
6 810
Rating
5.0 (1)
Ports
4000 (HTTP API and the built-in dashboard), 4001 (gRPC server), 4002 (MySQL wire protocol), 4003 (PostgreSQL wire protocol)
Docker
greptime/greptimedb
greptimedb screenshot 1greptimedb screenshot 2

What is greptimedb?

greptimedb alternatives

All self-hosted alternatives to Grafana Mimir → All self-hosted alternatives to Thanos → All self-hosted alternatives to Elasticsearch →

Should you self-host greptimedb?

greptimedb scores 69/100 on selfhost.directory (how scoring works) and ranks #22 of 105 in Monitoring & observability. It has 6 810 GitHub stars, +84 in the last 30 days.

It shipped 14 stable releases in the past year. The latest, v1.2.1, came out on 16 September 2026. New versions land roughly every 7 days.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Rust.

Its closest alternative on selfhost.directory is MeiliSearch (82/100, 59 850 stars). It scores higher overall, so compare the two before you pick. See greptimedb vs MeiliSearch side by side.

Features

  • Automatic region failover
  • Continuous aggregation (Flow engine)
  • Distributed cluster deployment
  • Inverted, skipping and fulltext indexesIndex creation is a manual operation in the open-source build.
  • Jaeger-compatible trace queries
  • Multi-protocol observability ingestion
  • Object-storage backed columnar engine
  • PromQL SupportGaps are listed in the PromQL compatibility doc.
  • Read replicas and workload isolationGreptimeDB Enterprise only.
  • Retention policies and downsampling
  • Schemaless ingestion with automatic schema generation
  • SQL querying
  • TLS/SSL Support
  • Unified metrics, logs and traces storage
  • Web Dashboard

greptimedb README

GreptimeDB Logo

Metrics, logs, and traces.
One engine, on your infrastructure.

User Guide  ·  API Docs  ·  Live Demo  ·  Roadmap 2026  ·  Slack

Stable Canary Nightly Docker Pulls License

stable for production  ·  canary includes pre-releases  ·  nightly is a weekly snapshot of main

Introduction

How to install greptimedb

Install greptimedb with Docker

Docker
docker run -p 127.0.0.1:4000-4003:4000-4003 \
  -v "$(pwd)/greptimedb_data:/greptimedb_data" \
  --name greptime --rm \
  greptime/greptimedb:v1.2.1 standalone start \
  --http-addr 0.0.0.0:4000 \
  --grpc-bind-addr 0.0.0.0:4001 \
  --mysql-addr 0.0.0.0:4002 \
  --postgres-addr 0.0.0.0:4003

Standalone mode; data is stored in the greptimedb_data/ directory.

How to configure greptimedb

  • storage.data_home./greptimedb_dataDatabase storage root directory when using local file storage.

    values: directory path

  • http.enable_api_serverfalseStarts a dedicated public HTTP API server serving /v1 and /dashboard only.

    values: true/false

  • grpc.bind_addr127.0.0.1:4001Address the gRPC server binds to.

    values: host:port

  • wal.providerraft_engineWAL provider used by the datanode/metasrv.

    values: raft_engine, kafka

  • --http-addr127.0.0.1:4000CLI flag that sets the HTTP server bind address (dashboard, ingestion and query endpoints).

    values: host:port

greptimedb releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Does the GreptimeDB Dashboard have authentication?

The open-source dashboard has no built-in authentication, so you should front it with a reverse proxy using Basic Auth or place it behind internal auth; the Enterprise management console has access control built in.

Which metadata storage backend should I use for metasrv?

etcd, MySQL and PostgreSQL are all supported; the docs recommend PostgreSQL or MySQL (including cloud RDS) for production while noting etcd is not deprecated.

What are the deployment options?

A cluster of metasrv, frontend and datanode (minimum 3 nodes for HA) or a single-process standalone binary for development, edge and IoT, on object storage or local disk.

How do I connect Grafana to GreptimeDB?

Three options are documented: the official GreptimeDB data source plugin with SQL and PromQL support, the Prometheus data source against GreptimeDB's compatible endpoint, or the built-in MySQL data source.

What protocols, tools, and SDKs does GreptimeDB support?

Write protocols include OTLP, Prometheus Remote Write, InfluxDB Line Protocol, Loki, Elasticsearch, MySQL, PostgreSQL and gRPC; querying is SQL or PromQL, with Grafana visualization, data-pipeline tools and SDKs for Go, Java, Rust, Erlang, .NET and TypeScript.

How does GreptimeDB handle late-arriving or out-of-order data?

Writes with any timestamp are accepted with no ingestion window or ordering requirement and become queryable immediately; compaction sorts data in the background.

Can I change a column's type after table creation?

Yes, with ALTER TABLE ... MODIFY COLUMN, provided the column is a nullable field rather than a tag or the time index.

How do I customize the default column names for InfluxDB / Prometheus protocols?

Generated columns use a greptime_ prefix by default; setting the top-level default_column_prefix option changes or removes it, and a restart is required.

How do I set default table options (TTL, append mode, etc.) for auto-created tables?

Options such as ttl, append_mode, merge_mode, skip_wal and sst_format can be passed at ingestion time via the x-greptime-hints HTTP header, changed later with ALTER TABLE where supported, or set as database-level defaults.

Does GreptimeDB support schemaless data ingestion?

Yes — when writing through gRPC, InfluxDB Line Protocol, OpenTSDB, Prometheus Remote Write, OpenTelemetry, Loki or the Elasticsearch-compatible APIs, tables and columns are created automatically on first write.

What's the difference between Tag and Field columns?

Tag columns identify a time series and are indexed by default (declared as PRIMARY KEY in SQL), field columns hold measured values, and every table needs exactly one timestamp as time index.

What's the difference between GreptimeDB and InfluxDB?

GreptimeDB claims a fully open-source distributed system, region-based sharding, SQL plus PromQL, native metrics/logs/traces in one model, and Kubernetes-oriented disaggregated storage.

What are GreptimeDB's design trade-offs?

It gives up ACID transactions and is not built for frequent fine-grained deletes, since it is optimized for append-heavy time-series observability workloads rather than general OLTP.

How is GreptimeDB's performance compared to other solutions?

It targets high-throughput writes, low-latency queries and cheap storage, with published benchmark reports against InfluxDB, TimescaleDB, Mimir, ClickHouse, Elasticsearch, Loki and SQLite.

Where can I find ready-to-run demos?

The demo-scene repository holds end-to-end examples for metrics, logs, IoT and other use cases that run locally with Docker Compose.

More in Time Series

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…