HertzBeat Quick Start - Install in 5 Minutes
How to Install HertzBeat?
Install Apache HertzBeat™ in under 5 minutes using Docker with a single command. HertzBeat supports Docker, binary packages, and source code installation on X86/ARM64 architectures.
Quick Install Command: docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat
Installation Methods
HertzBeat provides four installation options:
- Docker (Recommended) - Fastest setup, production-ready
- Binary Package - Traditional deployment with manual configuration
- Source Code - For development and customization
- Docker Compose - Full stack with database and time-series storage
Installation Method Comparison
| Method | Setup Time | Difficulty | Use Case |
|---|---|---|---|
| Docker | 2 minutes | Easy | Production, testing |
| Package | 10 minutes | Medium | Custom configurations |
| Source Code | 30 minutes | Advanced | Development |
| Docker Compose | 5 minutes | Easy | Full stack deployment |
Installation Instructions
1:Install quickly via docker
-
Just one command to get started:
docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat -
Access
http://localhost:1157to start, default account:admin/hertzbeat -
Deploy collector clusters(Optional)
docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector-e IDENTITY=custom-collector-name: set the collector unique identity name.-e MODE=public: set the running mode(public or private), public cluster or private cloud-edge.-e MANAGER_HOST=127.0.0.1: set the main hertzbeat server ip.-e MANAGER_PORT=1158: set the main hertzbeat server port, default 1158.
Detailed config refer to Install HertzBeat via Docker
2:Install via package
- Download the release package
hertzbeat-xx.tar.gzDownload Page - Configure the HertzBeat configuration yml file
hertzbeat/config/application.yml(optional) - Run command
$ ./bin/startup.shorbin/startup.bat - Access
http://localhost:1157to start, default account:admin/hertzbeat - Deploy collector clusters(Optional)
-
Download the release package
hertzbeat-collector-xx.tar.gzto new machine Download Page -
Configure the collector configuration yml file
hertzbeat-collector/config/application.yml: uniqueidentityname, runningmode(public or private), hertzbeatmanager-host, hertzbeatmanager-portcollector:
dispatch:
entrance:
netty:
enabled: true
identity: ${IDENTITY:}
mode: ${MODE:public}
manager-host: ${MANAGER_HOST:127.0.0.1}
manager-port: ${MANAGER_PORT:1158} -
Run command
$ ./bin/startup.shorbin/startup.bat -
Access
http://localhost:1157and you will see the registered new collector in dashboard
-
Detailed config refer to Install HertzBeat via Package
3:Start via source code
- Local source code debugging needs to start the back-end project
managerand the front-end projectweb-app. - Backend:need
maven3+,java17,lombok, start thehertzbeat-startupservice. - Web:need
nodejs npm angular-clienvironment, Runng serve --openinweb-appdirectory after backend startup. - Access
http://localhost:4200to start, default account:admin/hertzbeat
Detailed steps refer to CONTRIBUTING
4:Install All(hertzbeat+postgresql+tsdb) via Docker-compose
Install and deploy the postgresql/mysql database, victoria-metrics/iotdb/tdengine database and hertzbeat at one time through docker-compose deployment script.
Detailed steps refer to Install via Docker-Compose
5. Install All(hertzbeat+collector+postgresql+tsdb) via kubernetes helm charts
Install HertzBeat cluster in a Kubernetes cluster by Helm chart.
Detailed steps refer to Artifact Hub
Installation FAQ
What are HertzBeat's system requirements?
Minimum Requirements:
- 2 CPU cores
- 4GB RAM
- 10GB disk space
- Docker 20.10+ or Java 17+
Operating Systems: Linux, macOS, Windows (via Docker or WSL)
What ports does HertzBeat use?
- 1157 - Web UI and API
- 1158 - Collector communication (cluster mode only)
How do I verify HertzBeat is running?
- Check container status:
docker ps | grep hertzbeat - Access web UI: http://localhost:1157
- Login with: admin/hertzbeat
Can I change the default password?
Yes. After first login, navigate to Settings → Account Management to change the password.
How do I upgrade HertzBeat?
Docker upgrade:
docker stop hertzbeat
docker rm hertzbeat
docker pull apache/hertzbeat:latest
docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat
What database does HertzBeat use?
HertzBeat uses H2 embedded database by default. For production, configure external databases:
- Metadata: MySQL, PostgreSQL
- Time-series data: VictoriaMetrics, IoTDB, TDengine, InfluxDB
How do I add my first monitor?
- Login to web UI
- Click "Monitors" → "New Monitor"
- Select monitoring type (e.g., MySQL, Linux, Website)
- Enter IP, port, credentials
- Click "Confirm" to start monitoring
Where can I get help?
- Documentation: https://hertzbeat.apache.org/docs/
- GitHub Issues: https://github.com/apache/hertzbeat/issues
- Community: https://hertzbeat.apache.org/docs/community/contact
HAVE FUN