Grafana on Railway
Grafana with Loki, Tempo, Prometheus and Alloy for logs, traces and metrics, on Railway.
Grafana is an open-source tool for dashboards, alerting and exploring observability data. It reads from many data sources and is most often paired with Prometheus for metrics, Loki for logs and Tempo for traces. Together with Grafana Alloy as the collector, this set is commonly called the LGTM stack.
Developers use it to see how their services behave: jump from a slow trace to the logs and metrics of the same service, build dashboards, and set alerts. Apps send telemetry over OpenTelemetry (OTLP), so one endpoint can receive data from many services. It is a self-hosted alternative to paid observability SaaS products.
Grafana, Loki and Tempo are licensed under AGPL-3.0; Alloy and Prometheus are Apache-2.0.
What Grafana can do
- Dashboards and alerting in Grafana
- Loki for logs, Tempo for traces, Prometheus for metrics
- Alloy as a single OpenTelemetry (OTLP) endpoint
- Pre-provisioned, linked data sources
- Object storage for logs and traces
- Optional public ingest with a bearer token
What people use it for
- Collecting traces, logs and metrics from apps through one OTLP endpoint
- Jumping from a slow trace to the matching logs and metrics
- Dashboards and alerts on service metrics
- Receiving telemetry from apps hosted outside Railway
Videos
Running Grafana on Railway
The template deploys Grafana 13.2.3, Loki, Tempo, Prometheus and Alloy in one project. Datasources are provisioned and linked, Loki and Tempo keep data in two Railway Buckets, and Grafana, Prometheus and the write-ahead logs use volumes. Alloy receives OTLP on the private network, or publicly with a bearer token. It is a single-node stack. The template notes about 0.6 GB of RAM idle (measured locally, not on Railway); memory and bucket storage grow with ingest.
Grafana templates on Railway
Tracklayer templates are listed first. Other Grafana templates follow, ordered by total deployments on Railway. How this works.
Deployment numbers as of 2026-11-20.
Questions about Grafana
How do I log in?
Open the Grafana public domain and sign in as admin with GF_SECURITY_ADMIN_PASSWORD from the Grafana service variables. The password applies on first start.
How do my apps send data?
Set OTEL_EXPORTER_OTLP_ENDPOINT to the Alloy value, use the http/protobuf protocol and set an OTEL_SERVICE_NAME. From outside Railway, use the Alloy public domain with the OTLP_PUBLIC_TOKEN bearer token.
How long is data kept?
Default retention is 31 days for logs, 14 days for traces and 15 days for metrics. Logs and traces live in Railway Buckets.
Can I run multiple replicas?
No. It is a single-node stack that scales vertically, and Grafana uses SQLite so it stays at one replica.
What does the AGPL mean for me?
Running it for yourself does not change the licence terms. If you modify Grafana, Loki or Tempo and offer them to others over a network, the AGPL requires you to share your modified source. This is not legal advice.
Guides
Similar apps
Tracklayer maintains the templates marked as such; Grafana is a trademark of its owners and this site is not affiliated with them.