
Deploy GreptimeDB
GreptimeDB 1.2 observability database for metrics, logs and traces.
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
| Service | Image | Networking | Storage |
|---|---|---|---|
| greptimedb | greptime/greptimedb:v1.2.1 | public HTTP on 4000; TCP proxy to Postgres 4003; private 4000-4003 | volume 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}}.
| Variable | Default | Purpose |
|---|---|---|
GREPTIME_USERNAME / GREPTIME_PASSWORD | admin / generated | Static 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
greptimedb
greptime/greptimedb:v1.2.1
