---
title: "Deploy Grafana, Loki and Prometheus with OTEL Collector"
description: "Grafana, Loki and Prometheus with a centralized OTEL Collector"
category: "Other"
url: https://railway.com/deploy/grafana-loki-and-prometheus-with-otel-co
---

# Deploy Grafana, Loki and Prometheus with OTEL Collector

Grafana, Loki and Prometheus with a centralized OTEL Collector

**[Deploy Grafana, Loki and Prometheus with OTEL Collector on Railway](https://railway.com/template/grafana-loki-and-prometheus-with-otel-co)**

- **Creator:** platformlabs
- **Category:** Other
- **Total deploys:** 6

## Template content

### Tempo https://grafana.com/static/assets/img/logos/grafana-tempo.svg

- **Source:** https://github.com/biancarosa/railway-grafana-stack
- **Health check:** /ready

### Grafana https://grafana.com/media/docs/grafana-cloud/infrastructure/grafanalogo.svg

- **Source:** https://github.com/biancarosa/railway-grafana-stack
- **Health check:** /api/health

### Loki https://grafana.com/media/docs/loki/logo-grafana-loki.png

- **Source:** https://github.com/biancarosa/railway-grafana-stack
- **Health check:** /ready
- **Public domain:** Yes

### Prometheus https://icon.icepanel.io/Technology/svg/Prometheus.svg

- **Source:** https://github.com/biancarosa/railway-grafana-stack
- **Start command:** `prometheus --config.file=/etc/prometheus/prom.yml --storage.tsdb.path=/prometheus --web.enable-remote-write-receiver`
- **Health check:** /-/healthy

### OTEL Collector

- **Source:** https://github.com/biancarosa/railway-grafana-stack
- **Public domain:** Yes

## Documentation

# Deploy and Host Grafana, Loki and Prometheus with OTel Collector on Railway

A complete observability stack combining OpenTelemetry Collector, Grafana, Prometheus, Loki, and Tempo. This unified solution enables comprehensive application monitoring across metrics, logs, and distributed traces. The OTel Collector acts as a central telemetry hub, processing and routing data to specialized backends, all visualized through Grafana dashboards.

## About Hosting Grafana, Loki and Prometheus with OTEL Collector

Deploying this stack involves configuring four interconnected services: the OpenTelemetry Collector receives telemetry data via OTLP protocols (HTTP/gRPC), Prometheus stores metrics via remote write, Loki aggregates logs, and Tempo manages distributed traces. Grafana serves as the visualization layer with pre-configured datasources. Services communicate internally via private networking, with only Grafana exposed publicly. Each component runs containerized with dedicated configuration files. The architecture assumes application-level OpenTelemetry instrumentation sends data to the collector, which then batches and routes it to appropriate backends for storage and analysis.

## Common Use Cases

  - Full-stack application observability with unified logs, metrics, and traces
  - Microservices monitoring with distributed tracing across service boundaries
  - Performance debugging and troubleshooting with correlated telemetry data
  - Infrastructure monitoring and alerting via Prometheus metrics
  - Centralized log aggregation for multi-service applications

## Dependencies for Grafana, Loki and Prometheus with OTEL Collector Hosting

All dependencies are included in this template. The only thing you need to spin up is the service that you want to monitor and point it to the OTel Collector!

### Deployment Dependencies

  - https://opentelemetry.io/docs/
  - https://grafana.com/docs/
  - https://prometheus.io/docs/
  - https://grafana.com/docs/loki/
  - https://grafana.com/docs/tempo/
  - https://github.com/biancarosa/railway-grafana-stack

### Implementation Details 

Ready-to-use OTel Collector points to the services spinned up in this template.

Your application only needs to send data to the OTLP Endpoints:
- HTTP: http://otel-collector.railway.internal:4318
- gRPC: http://otel-collector.railway.internal:4317

This is a base otel collector - so depending on the config you want, you can go to https://github.com/biancarosa/railway-grafana-stack and choose "Use this template" to create your own copy. Then you can change the repository on your railway deployment to point to your repo instead, which will allow you to fine-tune your OTel Collector configuration.

## Why Deploy Grafana, Loki and Prometheus with OTEL Collector 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 Grafana, Loki and Prometheus with OTEL Collector 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.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/grafana-loki-and-prometheus-with-otel-co
