
Deploy Apache HertzBeat
Agentless monitoring and alerting with Postgres and VictoriaMetrics
Just deployed
/var/lib/postgresql/data
VictoriaMetrics
Just deployed
/victoria-metrics-data
HertzBeat
Just deployed
/opt/hertzbeat/data
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 and its documentation
- HertzBeat 1.9.1 release and official downloads
- VictoriaMetrics
- Template repository
Implementation Details
Services:
- HertzBeat: web UI, API, built-in collector and alerting. Public domain, health check on
/actuator/health, volume at/opt/hertzbeat/datafor 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.
Template Content
VictoriaMetrics
aalfath/hertzbeat-railway-templateHertzBeat
aalfath/hertzbeat-railway-template
