Deploy GreptimeDB

GreptimeDB 1.2 observability database for metrics, logs and traces.

Deploy GreptimeDB

Just deployed

/greptimedb_data

Deploy and Host GreptimeDB on Railway

GreptimeDB is an open-source observability database that stores metrics, logs and traces in one engine and queries them with SQL and PromQL. It ingests Prometheus remote write, OpenTelemetry, InfluxDB line protocol, Loki and Elasticsearch formats, and speaks the MySQL and PostgreSQL wire protocols, so Grafana and existing drivers work.

About Hosting GreptimeDB

This template deploys GreptimeDB v1.2.1 in standalone mode with its data on a Railway volume. Authentication is enabled with a static admin user and a password generated at deploy time, and applies to HTTP, MySQL and Postgres. The HTTP API and web dashboard are on the public domain, and the PostgreSQL protocol is exposed through a Railway TCP proxy. All protocols also listen privately on IPv4 and IPv6. The health endpoint is open for Railway's health check. Storage grows with data; watch the volume on the Hobby plan. Back up the volume regularly.

Common Use Cases

  • One database for application metrics, logs and traces
  • A Prometheus remote-write and OpenTelemetry backend queried from Grafana
  • Time-series analytics with standard SQL over Postgres or MySQL drivers

Dependencies for GreptimeDB Hosting

  • greptime/greptimedb:v1.2.1 (official image)
  • A Railway volume at /greptimedb_data
  • A Railway TCP proxy for the Postgres protocol

Deployment Dependencies

Implementation Details

ServiceImageNetworkingStorage
greptimedbgreptime/greptimedb:v1.2.1public HTTP on 4000; TCP proxy to Postgres 4003; private 4000-4003volume at /greptimedb_data
curl -u "admin:$GREPTIME_PASSWORD" "$GREPTIME_URL/v1/influxdb/write?db=public" --data-binary 'cpu,host=web-1 usage=0.73'
curl -u "admin:$GREPTIME_PASSWORD" -X POST "$GREPTIME_URL/v1/sql" --data-urlencode "sql=select * from cpu"

Prometheus remote write: https:///v1/prometheus/write with basic auth. Postgres: ${{greptimedb.GREPTIME_PG_PUBLIC}}.

VariableDefaultPurpose
GREPTIME_USERNAME / GREPTIME_PASSWORDadmin / generatedStatic user for all protocols

Notes:

  • Ports: HTTP 4000, gRPC 4001, MySQL 4002, Postgres 4003; only HTTP is public by default.
  • The dashboard is at /dashboard/ on the public domain.

This is a community-maintained deployment package and does not imply affiliation with or endorsement by the GreptimeDB project or its maintainers.

Why Deploy GreptimeDB on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying GreptimeDB on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
NEW
Rootprint
Open-source logs and traces with full-text search on object-storage.

Rootprint
1
View Template
Pyroscope profiling
Protected continuous profiling with durable Pyroscope storage.

Anton Orel
1
View Template
SigOnly
Deploy SigNoz with a working demo app & config in one click

zoeyjones
22