Deploy Grafana Stack
Pre-wired observability — Grafana dashboards, Prometheus metrics, Loki logs
Just deployed
Just deployed
prometheus
Just deployed
Deploy and Host Grafana + Prometheus + Loki on Railway
A complete observability stack bundling Grafana for dashboards, Prometheus for metrics collection, and Loki for log aggregation. All three services come pre-wired with datasource provisioning and private networking configured out of the box.
About Hosting the Grafana Monitoring Stack
Running a full observability stack typically involves configuring three separate services and wiring them together — datasource URLs, scrape targets, and network access between components. This template eliminates that setup. Grafana deploys with Prometheus and Loki datasources pre-provisioned. Prometheus is configured to scrape itself and Grafana by default. Loki runs in single-instance mode with filesystem storage. All three services communicate over Railway's private network and each has its own persistent volume for data retention. You can extend it by forking the repo and adding custom scrape targets or dashboards.
Common Use Cases
- Monitoring application performance — request rates, error rates, and response latencies across services
- Centralizing logs from multiple Railway services into Loki for unified search and correlation
- Building real-time operational dashboards for both technical metrics and business KPIs
Dependencies for Grafana Stack Hosting
- No external dependencies (self-contained three-service stack)
Deployment Dependencies
Implementation Details
Each service runs in a subdirectory of a monorepo (packages/grafana, packages/prometheus, packages/loki). Grafana reads datasource configuration from a provisioning YAML that references Prometheus and Loki via RAILWAY_PRIVATE_DOMAIN environment variables. To add your own scrape targets, edit packages/prometheus/prometheus.yml:
scrape_configs:
- job_name: "my-app"
static_configs:
- targets: ["your-service.railway.internal:8080"]
Resource Usage
This template deploys 3 services (Grafana, Prometheus, Loki), each with a persistent volume. Resource usage scales with the number of metrics, logs ingested, and dashboard queries — expect moderate baseline costs from running three services.
Why Deploy the Grafana Stack 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 the Grafana Stack 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
