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 -yredis-server &2. Prepare MySQL (MariaDB)
yum install mariadb mariadb-server -ysystemctl start mariadbsystemctl enable mariadbTest 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.gitcd /tmp/falcon-plus/scripts/mysql/db_schema/mysql -h 192.168.236.181 -u root -p < 1_uic-db-schema.sqlmysql -h 192.168.236.181 -u root -p < 2_portal-db-schema.sqlmysql -h 192.168.236.181 -u root -p < 3_dashboard-db-schema.sqlmysql -h 192.168.236.181 -u root -p < 4_graph-db-schema.sqlmysql -h 192.168.236.181 -u root -p < 5_alarms-db-schema.sqlSet 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.gztar xf open-falcon-v0.3.tar.gz -C /home/work/open-falconEdit configuration files (replace MySQL username and password as needed):
vim /home/work/open-falcon/aggregator/config/cfg.jsonvim /home/work/open-falcon/graph/config/cfg.jsonvim /home/work/open-falcon/hbs/config/cfg.jsonvim /home/work/open-falcon/nodata/config/cfg.jsonvim /home/work/open-falcon/api/config/cfg.jsonvim /home/work/open-falcon/alarm/config/cfg.jsonStart 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.pypython ez_setup.py --insecurewget https://pypi.python.org/packages/.../pip-9.0.1.tar.gztar xf pip-9.0.1.tar.gzcd pip-9.0.1python setup.py installCreate a virtual environment and activate it:
virtualenv ./envsource env/bin/activateInstall required Python packages:
./env/bin/pip install -r pip_requirements.txt -i https://pypi.douban.com/simpleConfigure 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://<server-ip>:8081) to view Open-Falcon's monitoring interface.
--- End of tutorial ---
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
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.
