Open-falcon deployment documentation (drawing and alarms)

Source: Internet
Author: User
Tags virtualenv

Open-falcon Deployment documentation (drawing and alerting)


Deploying drawing Components

Agent

The monitoring indicators of the acquisition machine, agent and transfer established a long connection, the data is sent faster, the agent provides an HTTP interface/v1/push used to receive user manual push some data, and then quickly forwarded to the transfer through a long connection.

CD Agent

MV Cfg.example.json Cfg.json

Vim Cfg.json

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/84/6F/wKioL1eQlS2TxfsaAAB3iBSN_7c981.jpg-wh_500x0-wm_3 -wmp_4-s_3601628558.jpg "title=" 1.jpg "alt=" Wkiol1eqls2txfsaaab3ibsn_7c981.jpg-wh_50 "/>


Modify the IP as three places,

Heartbeat HBS Address, port is the RPC port of HBS
Transfer can be filled in as many as required.
http: The default configuration can not be modified here, modifications are made here
./control Start (start)

Deployment Note: Agents need to be deployed to all machines to be monitored, such as the company has 100,000 machines,
Then deploy 100,000 agents. The agent itself consumes very little resources, so don't worry.

Transfer
Transfer is a data forwarding service. It receives the data that the agent escalated and then follows the hash rule
The data is fragmented, and the fragmented data is then push to components such as Graph&judge, respectively
.
CD transfer
MV Cfg.example.json Cfg.json (default configuration)
./control Start (start)
./control tail (see if you have an error)

Graph

Graph is the component that stores the drawing data. Graph component Receive transfer component push up

monitoring data, processing query requests, returning drawing data .

CD graph

MV Cfg.example.json Cfg.json

Vim Cfg.json

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/84/6F/wKioL1eQlpKTkI6pAAA3RLvj0Vg607.jpg-wh_500x0-wm_3 -wmp_4-s_3540706552.jpg "title=" 2.jpg "alt=" Wkiol1eqlpktki6paaa3rlvj0vg607.jpg-wh_50 "/>

./control Start (start)
./control tail (see if you have an error)

Query component, which provides a unified search portal for drawing data

CD Query

MV Cfg.example.json Cfg.json (default configuration)

./control Start (start)

./control tail (see if you have an error)

Dashboard
Dashboard is a user-oriented query interface. Here, the user can see the push to
All the data in graph and view its trend graph.

# Install VIRTUALENV. Root permission is required.
Yum Install-y python-virtualenv
# Install dependencies. Need to be executed in the dashboard directory.
CD Dashboard
Virtualenv./env
./env/bin/pip Install-r Pip_requirements.txt
Vim gunicorn.conf

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/84/6F/wKiom1eQlsXQ1nOBAAA-qYX3ynI066.jpg-wh_500x0-wm_3 -wmp_4-s_2646169582.jpg "title=" 3.jpg "alt=" Wkiom1eqlsxq1nobaaa-qyx3yni066.jpg-wh_50 "/>

Vim./rrd/config.py

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/84/6F/wKiom1eQltXiC75EAABYeHVGhqs757.jpg-wh_500x0-wm_3 -wmp_4-s_3003920412.jpg "title=" 4.jpg "alt=" Wkiom1eqltxic75eaabyehvghqs757.jpg-wh_50 "/>

./control Start (start)
./control tail (see if you have an error)

To install the alarm components:

Mail Service Mail-provider
Monitoring system to generate alarm events need to send alarm messages or alarm messages, if the company
Without their own mail system can be used this software, more convenient.

mkdir Mail-provider
TAR-ZXF falcon-mail-provider-0.0.1.tar.gz-c Mail-provider
CD Mail-provider
MV Cfg.example.json Cfg.json
Vim Cfg.json

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/84/70/wKioL1eQl2LDxU6UAAA7adC8I70129.jpg-wh_500x0-wm_3 -wmp_4-s_2162808185.jpg "title=" 5.jpg "alt=" Wkiol1eql2ldxu6uaaa7adc8i70129.jpg-wh_50 "/>

Modify the configuration as above
./control Start (start)

Sender
Sender This module is designed to invoke the mail and SMS sending interfaces provided by each company.
CD Sender
MV Cfg.example.json Cfg.json
Vim Cfg.json

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/84/70/wKiom1eQl36RNh_CAAAmMi-zivQ206.jpg-wh_500x0-wm_3 -wmp_4-s_2034753127.jpg "title=" 6.jpg "alt=" Wkiom1eql36rnh_caaammi-zivq206.jpg-wh_50 "/>

Sender is configured above, otherwise cannot send mail
Fe
Web front end, which is the go version of UIC, is also a unified web portal that can be used in FE
Maintain personal contact information and maintain the correspondence between people and groups


CD FE
MV Cfg.example.json Cfg.json
Vim Cfg.json

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/84/70/wKioL1eQl8WTEcLIAABDXdeezKI199.jpg-wh_500x0-wm_3 -wmp_4-s_3714744422.jpg "title=" 7.jpg "alt=" Wkiol1eql8wtecliaabdxdeezki199.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/84/70/wKiom1eQmILw1ZflAABT1wZowco963.jpg-wh_500x0-wm_3 -wmp_4-s_3180706941.jpg "title=" 8.jpg "alt=" Wkiom1eqmilw1zflaabt1wzowco963.jpg-wh_50 "/>


./control Start (start)
./control tail (see if you have an error)

Portal
The portal is used to configure the alert policy
CD Portal
Virtualenv./env
./env/bin/pip Install-r Pip_requirements.txt
Vim gunicorn.conf

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/84/70/wKioL1eQmJng3MKBAAA01Xgz07I820.jpg-wh_500x0-wm_3 -wmp_4-s_296920707.jpg "title=" 9.jpg "alt=" Wkiol1eqmjng3mkbaaa01xgz07i820.jpg-wh_50 "/>


Vim frame/config.py

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/84/70/wKiom1eQmKnj31DgAAB2tCt1PbA205.jpg-wh_500x0-wm_3 -wmp_4-s_763393303.jpg "title=" 10.jpg "alt=" Wkiom1eqmknj31dgaab2tct1pba205.jpg-wh_50 "/>

./control Start (start)

Hbs
Heartbeat server, all agents of the company will be connected to HBS, and heartbeat requests are made every minute.

CD HBS
MV Cfg.example.json Cfg.json
Vim Cfg.json

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/84/70/wKioL1eQmLvBHieOAABMX1Z-S5U831.jpg-wh_500x0-wm_3 -wmp_4-s_2171631132.jpg "title=" 11.jpg "alt=" Wkiol1eqmlvbhieoaabmx1z-s5u831.jpg-wh_50 "/>

./control Start (start)
./control tail (see if you have an error)

Judge
For alarm determination, the agent will push the data to Transfer,transfer not only forwarded to
Graph component to draw and will also be forwarded to judge to determine if the alarm is triggered

CD judge
MV Cfg.example.json Cfg.json
Vim Cfg.json

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/84/70/wKioL1eQmPrSiSbVAABPpKffCc4263.jpg-wh_500x0-wm_3 -wmp_4-s_1860270050.jpg "title=" 12.jpg "alt=" Wkiol1eqmprsisbvaabppkffcc4263.jpg-wh_50 "/>


./control Start (start)
./control tail (see if you have an error)

Alarm
Alarm module is handling alarm event, Judge generated alarm event is written to Redis,
Alarm read processing from Redis

CD Alarm
MV Cfg.example.json Cfg.json
Vim Cfg.json

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/84/70/wKioL1eQmSDQjkWDAAAkDloO5f0615.jpg-wh_500x0-wm_3 -wmp_4-s_2279492481.jpg "style=" Float:none; "title=" 13.jpg "alt=" Wkiol1eqmsdqjkwdaaakdloo5f0615.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/84/70/wKiom1eQmSCwJ_1MAAAjpxQTWRo576.jpg-wh_500x0-wm_3 -wmp_4-s_91579905.jpg "style=" Float:none; "title=" 14.jpg "alt=" Wkiom1eqmscwj_1maaajpxqtwro576.jpg-wh_50 "/>

./control Start (start)
./control tail (see if you have an error)

Alarm merge   :

adjusting The alarm configuration

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/84/70/wKioL1eQmVrTDnw6AAAx2CbZkWg680.jpg-wh_500x0-wm_3 -wmp_4-s_2023959133.jpg "title=" 15.jpg "alt=" Wkiol1eqmvrtdnw6aaax2cbzkwg680.jpg-wh_50 "/>

Add p0,p1 to high ,p2-p6 add to low .

Links
The role of the links component: When multiple alarms are combined into an alarm message,
An HTTP link address for the details of the alert will be included in the text message for the user to view.


CD links
Virtualenv./env
./env/bin/pip Install-r Pip_requirements.txt
Vim gunicorn.conf

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/84/70/wKioL1eQmZDzBpOBAAAxSc2w4qE622.jpg-wh_500x0-wm_3 -wmp_4-s_3418991716.jpg "title=" 16.jpg "alt=" Wkiol1eqmzdzbpobaaaxsc2w4qe622.jpg-wh_50 "/>

Vim frame/config.py

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/84/70/wKiom1eQmZuSnOEqAABb_7VwbFc546.jpg-wh_500x0-wm_3 -wmp_4-s_1378831616.jpg "title=" 17.jpg "alt=" Wkiom1eqmzusnoeqaabb_7vwbfc546.jpg-wh_50 "/>

./control Start (start)
./control tail (see if you have an error)


Summary: Open-falcon According to an official document deployment process, will encounter some pits, originally also took a while to solve, the detailed configuration of the document has been listed, according to the deployment basically no problem.


Note: It is still not very likely to use this blog, typesetting may have problems, see the words pay attention to it. Hey!


This article is from the "Road Never traveled" blog, please make sure to keep this source http://10551335.blog.51cto.com/10541335/1828537

Open-falcon deployment documentation (drawing and alarms)

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.