---
title: "Deploy Apache HertzBeat"
description: "Agentless monitoring and alerting with Postgres and VictoriaMetrics"
category: "Observability"
url: https://railway.com/deploy/apache-hertzbeat-1
---

# Deploy Apache HertzBeat

Agentless monitoring and alerting with Postgres and VictoriaMetrics

**[Deploy Apache HertzBeat on Railway](https://railway.com/template/apache-hertzbeat-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/apache-hertzbeat-1/manifest.json

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

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### VictoriaMetrics https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/victoriametrics.png

- **Source:** https://github.com/aalfath/hertzbeat-railway-template
- **Health check:** /health

### HertzBeat https://raw.githubusercontent.com/apache/hertzbeat/v1.9.1/home/static/img/hertzbeat-logo.png

- **Source:** https://github.com/aalfath/hertzbeat-railway-template
- **Health check:** /actuator/health
- **Public domain:** Yes

## Documentation

# Deploy and Host Apache HertzBeat on Railway

Apache HertzBeat is an open-source, real-time monitoring and alerting system from the Apache Software Foundation. It checks websites, APIs, TLS certificates, databases, operating systems, middleware and network devices without installing agents on them, keeps metric history, and sends alerts by email, webhook, Slack, Discord, Telegram and more.

## About Hosting Apache HertzBeat

This template deploys HertzBeat 1.9.1 with the storage upstream recommends for production instead of the embedded H2 and DuckDB files: Railway PostgreSQL for monitors, alert rules and settings, and VictoriaMetrics for metric history (90 days). Each stateful service has its own volume, and the services talk over Railway's private network. Nothing needs to be filled in. The admin password and the VictoriaMetrics password are generated. After deploying, open the HertzBeat URL and sign in as `admin` with `HERTZBEAT_ADMIN_PASSWORD` from the HertzBeat service's Variables. HertzBeat creates its database schema on first start. The JVM is sized to run in 0.5 GB of RAM.

## Common Use Cases

* Monitor websites, APIs, ports and TLS certificate expiry, with alerts when something goes down or slows down
* Watch PostgreSQL, MySQL, Redis, Kafka, Nginx, Linux hosts (over SSH) and many more from one dashboard, without agents
* Run a self-hosted status page and alerting for a small team instead of a paid SaaS plan

## Dependencies for Apache HertzBeat Hosting

* PostgreSQL (Railway's managed Postgres) for HertzBeat's configuration and alert history
* VictoriaMetrics for the time-series metric history

### Deployment Dependencies

* [Apache HertzBeat](https://github.com/apache/hertzbeat) and its [documentation](https://hertzbeat.apache.org/docs/)
* [HertzBeat 1.9.1 release](https://github.com/apache/hertzbeat/releases/tag/v1.9.1) and [official downloads](https://downloads.apache.org/hertzbeat/1.9.1/)
* [VictoriaMetrics](https://github.com/VictoriaMetrics/VictoriaMetrics)
* [Template repository](https://github.com/aalfath/hertzbeat-railway-template)

### Implementation Details

Services:

* **HertzBeat**: web UI, API, built-in collector and alerting. Public domain, health check on `/actuator/health`, volume at `/opt/hertzbeat/data` for uploaded plugins and extra JDBC drivers. Upstream publishes no Docker image for 1.9.1, so it is built from the official signed Apache distribution (checked against Apache's sha512) on a digest-pinned Eclipse Temurin 25 JRE.
* **Postgres**: HertzBeat's metadata database.
* **VictoriaMetrics** v1.156.0: metric history, private network only, protected by a generated password.

HertzBeat keeps its login accounts in `config/sureness.yml`, and upstream ships `admin` / `hertzbeat`. This template writes the generated `HERTZBEAT_ADMIN_PASSWORD` into that file at every start and refuses to start without it. To change the password, edit the variable and redeploy. For email alerts, add `SPRING_MAIL_HOST`, `SPRING_MAIL_PORT`, `SPRING_MAIL_USERNAME` and `SPRING_MAIL_PASSWORD` to the HertzBeat service. OTLP over gRPC is turned off because a Railway domain only carries HTTP. OTLP over HTTP still works.

Updates: every service builds from the template repository, so Railway shows an "update available" notice when the version is bumped there. Read the repository's CHANGELOG and back up Postgres before you apply it.

## Why Deploy Apache HertzBeat 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 Apache HertzBeat 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

- [Rootprint](https://railway.com/deploy/rootprint-1) — Open-source logs and traces with full-text search on object-storage.
- [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

Open this page in a browser: https://railway.com/deploy/apache-hertzbeat-1
