Step-by-Step Deployment of Open-Falcon Monitoring System with Redis, MySQL, and Go
This guide walks through installing Redis, MariaDB, Go, configuring Open-Falcon's backend and frontend components, setting up Python virtual environments, and launching the monitoring system, providing complete command-line instructions and configuration details for a functional deployment.
This article provides a complete deployment tutorial for the Open-Falcon monitoring platform, covering prerequisite installations, backend setup, frontend preparation, and final access.
1. Install Redis
yum install redis -y
redis-server &
2. Prepare MySQL (MariaDB)
yum install mariadb mariadb-server -y
systemctl start mariadb
systemctl enable mariadb
Test login:
mysql -uroot -p
Initialize schema by cloning the Open-Falcon repository and importing SQL files:
cd /tmp/ && git clone https://github.com/open-falcon/falcon-plus.git
cd /tmp/falcon-plus/scripts/mysql/db_schema/
mysql -h 192.168.236.181 -u root -p < 1_uic-db-schema.sql
mysql -h 192.168.236.181 -u root -p < 2_portal-db-schema.sql
mysql -h 192.168.236.181 -u root -p < 3_dashboard-db-schema.sql
mysql -h 192.168.236.181 -u root -p < 4_graph-db-schema.sql
mysql -h 192.168.236.181 -u root -p < 5_alarms-db-schema.sql
Set MySQL root password:
mysqladmin -uroot password "12345"
3. Install Go language
yum install golang -y
4. Backend setup (Open-Falcon)
Download and extract the binary package:
wget https://github.com/open-falcon/falcon-plus/releases/download/v0.3/open-falcon-v0.3.tar.gz
tar xf open-falcon-v0.3.tar.gz -C /home/work/open-falcon
Edit configuration files (replace MySQL username and password as needed):
vim /home/work/open-falcon/aggregator/config/cfg.json
vim /home/work/open-falcon/graph/config/cfg.json
vim /home/work/open-falcon/hbs/config/cfg.json
vim /home/work/open-falcon/nodata/config/cfg.json
vim /home/work/open-falcon/api/config/cfg.json
vim /home/work/open-falcon/alarm/config/cfg.json
Start the backend modules:
./open-falcon start
Typical output shows the graph service PID, e.g., [falcon-graph] 10848 .
5. Frontend setup (Open-Falcon Dashboard)
Clone the dashboard repository:
git clone https://github.com/open-falcon/dashboard.git
Download and install ez_setup.py and pip :
wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py
python ez_setup.py --insecure
wget https://pypi.python.org/packages/.../pip-9.0.1.tar.gz
tar xf pip-9.0.1.tar.gz
cd pip-9.0.1
python setup.py install
Create a virtual environment and activate it:
virtualenv ./env
source env/bin/activate
Install required Python packages:
./env/bin/pip install -r pip_requirements.txt -i https://pypi.douban.com/simple
Configure the dashboard (edit config.py as needed) and start it:
./control start
Typical startup logs show Gunicorn listening on port 8081:
[2021-10-09 09:49:04 +0000] [8143] [INFO] Listening at: http://0.0.0.0:8081 (8143)
6. Access the UI
Open a web browser and navigate to the dashboard URL (e.g., http:// :8081 ) to view Open-Falcon's monitoring interface.
--- End of tutorial ---
Practical DevOps Architecture
Hands‑on DevOps operations using Docker, K8s, Jenkins, and Ansible—empowering ops professionals to grow together through sharing, discussion, knowledge consolidation, and continuous improvement.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.