---
title: "Deploy Grafana"
description: "Grafana 13.1.3 observability dashboards, logs, and alerts."
category: "Observability"
url: https://railway.com/deploy/her574-grafana1313-src
---

# Deploy Grafana

Grafana 13.1.3 observability dashboards, logs, and alerts.

**[Deploy Grafana on Railway](https://railway.com/template/her574-grafana1313-src)**

- **Creator:** Agaz Self-Host
- **Category:** Observability

## Template content

### grafana

- **Image:** grafana/grafana@sha256:ab5cb380e3ff3172d6c8bd2e7cfd31cce977d2881b260e1f5bc089bf0b759b43
- **Health check:** /api/health
- **Public domain:** Yes

## Documentation

# Deploy and Host Grafana 13.1.3 on Railway

Grafana is an open-source observability platform for querying, visualizing, and alerting on metrics, logs, traces, and other time-series data. Teams use dashboards, Explore, alert rules, and data-source integrations to understand application health. This template runs the official Grafana OSS 13.1.3 image with Railway networking and persistent storage.

## About Hosting Grafana 13.1.3

Railway runs the official Grafana OSS image as one service listening on port 3000. A Railway-provided public domain exposes the web UI and `/api/health` readiness endpoint. A persistent volume is mounted at `/var/lib/grafana` so the built-in SQLite database, dashboards, alert rules, and installed plugins survive restarts. The template generates the admin password at deployment time with Railway's `secret(32)` function and keeps sign-ups disabled by default. Set up external data sources from Grafana after deployment; this template does not provision or require a separate database. The source is pinned to Grafana 13.1.3 for repeatable deployments.

## Common Use Cases

* Build dashboards for application, infrastructure, and service metrics.
* Explore logs and traces alongside time-series data during incident response.
* Define alert rules and notification policies for development or self-hosted observability.

## Dependencies for Grafana 13.1.3 Hosting

* A Railway service using the official `grafana/grafana` OSS image.
* Persistent Railway volume mounted at `/var/lib/grafana`.
* Optional external data sources such as Prometheus, Loki, Tempo, or Elasticsearch, configured by the deployer inside Grafana.

### Deployment Dependencies

* [Grafana 13.1.3 release](https://github.com/grafana/grafana/releases/tag/v13.1.3)
* [Grafana Docker configuration](https://grafana.com/docs/grafana/latest/setup-grafana/configure-docker/)
* [Grafana HTTP API health endpoint](https://grafana.com/docs/grafana/latest/developers/http_api/)

### Implementation Details

The service uses the immutable image reference `grafana/grafana@sha256:ab5cb380e3ff3172d6c8bd2e7cfd31cce977d2881b260e1f5bc089bf0b759b43`, exposes port 3000, and uses `/api/health` as the Railway health check. `RAILWAY_RUN_UID=0` is set because Railway volumes are mounted as root while the official image defaults to a non-root user. The admin password is generated once as the authoritative template value; do not create a second generated value for the same key.

## Why Deploy Grafana 13.1.3 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 13.1.3 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

- [Pyroscope profiling](https://railway.com/deploy/pyroscope-profiling) — Protected continuous profiling with durable Pyroscope storage.
- [SigOnly](https://railway.com/deploy/sigonly) — Deploy SigNoz with a working demo app & config in one click
- [Unwrapped Spotify Music Stats](https://railway.com/deploy/wide-bold) — Unwrapped Spotify Music Stats, Estatísticas de músicas disponíveis

Open this page in a browser: https://railway.com/deploy/her574-grafana1313-src
