open-falcon-Xiaomi Monitoring Tool

Source: Internet
Author: User
Tags json redis virtualenv git clone install redis
You can try some hybrid deployments based on resource consumption characteristics, high availability requirements, and more. For example:-Transfer&graph&judge is the big three of Open-falcon, under the most pressure, the most resources consumption, but does not conflict with each other, you can consider a hybrid deployment of these three sub-services on the high distribution server-alarm& Sender&links resource consumption, but high stability requirements, can choose low-stable model, separate deployment-HBS resource consumption is stable, not susceptible to external influences, can choose low-provisioned host, separate deployment-dashboard, portal, UIC, etc. are Web applications, Resource consumption is relatively small, but vulnerable to user behavior, you can choose low-provisioned host, hybrid deployment, and sufficient margin-query affected by user behavior, resource consumption fluctuations, it is recommended to choose low-provisioned host, separate deployment, sufficient margin
Service process management:./control START process./control stop stop process./control restart restart process./control Status View the status of the process./control tail in tail-f way View Var/app.log
1. Install Redis # wget http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/5/i386/epel-release-5-4.noarch.rpm # RPM-IVH epel-release-5-4.noarch.rpm # Yum Install redis-y 2, installing MySQL # wget http://dev.mysql.com/get/ mysql-community-release-el7-5.noarch.rpm # RPM-IVH mysql-community-release-el7-5.noarch.rpm # yum Install Mysql-community-server # Service Mysqld Restart 3, initializing MySQL table structure # export Home=/home/work # export workspace= $HOME/open-falc On # mkdir-p $WORKSPACE # cd $WORKSPACE # git clone https://github.com/open-falcon/scripts.git # CD./scripts/import tables into the database # Mysql-h Localhost-u root-p < Db_schema/grah-db-schema.sql # mysql-h Localhost-u root-p < db_schema/dashbpard-d B-schema.sql # mysql-h Localhost-u root-p < Db_schema/potal-db-schema.sql # mysql-h Localhost-u root-p < DB_SC Hema/links-db-schema.sql # mysql-h Localhost-u root-p < db_schema/uic-db-schema.sql see if import succeeded # MySQL  > show Databases 4, the installation environment will be compressed package decompression, there are a lot of small module ①agent (client, after installation can view the operation of the Monitoring installation machine) The agent compressed package decompression: # Tar zxvf falcon-agent-5.1.0.tar.gz # mv cfg.example.json cfg.json &&/control start &&. Control tail start listening on port 1988 to view log. The default port is 1988, you can open http://127.0.0.1:1988 to see a simpler web
②hds (heartbeat service) HBS is the Open-falcon Configuration Center, responsible for the configuration of the system, management agent information, etc. # tar zxvf falcon-hbs-1.1.0.tar.gz # mv Cfg.example.json Cfg.json &&/control start &&/control tail Heartbeat service default HTTP port is 6030, RPC port 6031
③transfer (transfer receives the data reported by the agent, then uses a consistent hash for data sharding, and forwards the fragmented data to the graph, Judge cluster) # tar ZXVF falcon-transfer-0.0.14.tar.gz # MV Cfg.example.json Cfg.json &&./control start &&./control Tail Default HTTP port is 6060, RPC port 8433
④judge judge trigger logic for implementing an alert policy # tar ZXVF falcon-judge-2.0.2.tar.gz # mv Cfg.example.json Cfg.json &&./control Start & amp;&./control tail http port 6081, RPC port 6080 configuration item note the Redis link in alarm and the server address of HBS, if modified please remember to correspond.
⑤graph (graph component for storing, archiving graphing data, can be deployed in clusters) # tar zxvf falcon-graph-0.5.3.tar.gz # mv Cfg.example.json Cfg.json &&. Control start &&./control tail RPC Port 6070, HTTP port 6071
Database file is stored in/home/work/data/6070 boot error, either sudo or root user initiated. Note Modify the database connection.
⑥dashboard graphical display of user monitoring data # tar zxvf falcon-dashboard-d25adaf.tar.gz "install Epel extension Source first: yum-y install epel-release then installs PYTHON-PI P:sudo yum-y Install PYTHON-PIP "# yum install python-virtualenv-y # virtualenv env # source Env/bin/activate # PIP Inst All-r Pip_requirements.txt # use./env/bin/python wsgi.py # or Deactivate &&/control start &&/control Tail
⑦query data shards are stored on graph, which is cumbersome for users to query. Query is responsible for providing a unified query entry, masking the details of the data shards. The usage scenarios of query are as follows: (1) Dashboard Chart Show (2) two times development using monitoring data # tar ZXVF falcon-query-1.3.2.tar.gz # mv Cfg.example.json Cfg.json && amp;./control start &&./control tail
The ⑧portal portal provides monitoring policy management-related UI with low frequency and minimal system load.
⑨uic UIC is a user information management center that provides user-managed UIs with a low frequency of usage and a smaller system load.
⑩alarm (Sender) Alarm is responsible for organizing the alarm information, making it suitable for sending form. Sender is responsible for sending the alert content to the end user.
⑪links Links is responsible for displaying the details of the combined alarm.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.