Centos6.5 install open-falcon

Source: Internet
Author: User
Tags install redis

Centos6.5 install open-falcon

  1. Environment preparation

Install redis
yuminstall-yredis
Install mysql
yuminstall-ymysql-server
Create a working directory
exportHOME=/home/workexportWORKSPACE=$HOME/open-falconmkdir-p$WORKSPACEcd$WORKSPACE
Initialize the mysql table structure
# All components of open-falcon do not need to be started with the root account. We recommend that you use a common account for installation to improve security. Here we use the common account: work to install and deploy all components # Of course, the root permission is required when installing dependent lib libraries using yum. Gitclonehttps: // catalog "" <db_schema/graph-db-schema.sqlmysql-hlocalhost-uroot -- password = "" <db_schema/dashboard-db-schema.sqlmysql-hlocalhost-uroot -- password = "" <db_schema/portal-db-schema.sqlmysql-hlocalhost-uroot -- password = "" <db_schema/links-db-schema.sqlmysql-hlocalhost-uroot -- password =" "<db_schema/uic-db-schema. SQL
Download compiled Components

We compile related components into binary for your convenience. These binary components can only run on 64-bit Linux.

Domestic users click here to download the compiled binary version at high speed

DOWNLOAD = "https://github.com/open-falcon/of-release/releases/download/v0.1.0/open-falcon-v0.1.0.tar.gz" cd $ WORKSPACEmkdir. /Category-C. /tmp/forxin 'Find. /tmp/-name "* .tar.gz" '; do \ app = 'echo $ x | cut-d'-'-f2'; \ mkdir-p $ app; \ tar-zxf $ x-C $ app; \ done

============================== Install the drawing component =======================

At the same time, check the current working directory settings again:

+

exportHOME=/home/workexportWORKSPACE=$HOME/open-falconmkdir-p$WORKSPACE
Install Transfer

Transfer listens to port 8433 by default, and the agent pushes data through jsonrpc.

Cd $ WORKSPACE/transfer/mvcfg. example. jsoncfg. json # by default, all components are on the same server. json unchanged # cfg. for details about the configuration items in json, refer to configurations. If the test result is OK, the service is started normally. Curl-s "http: // 127.0.0.1: 6060/health" # view logs./controltail # Stop transfer./controlstop
Install Agent

Agents must be deployed on each machine. The agent automatically collects predefined collection items and pushes them to transfer every 60 seconds.

Cd $ WORKSPACE/agent/mvcfg. example. jsoncfg. jsonvimcfg. json-Modify the enabled value of the transfer configuration item to true, which indicates that the function of sending data to transfer is enabled.-Modify the addr value of the transfer configuration item to ["127.0.0.1: 8433 "] (changed to the listening address of the transfer component, in the form of a list, you can configure the addresses of multiple transfer instances, separated by commas) # By default (all components are on the same server), keep cfg. json unchanged # cfg. for details about the configuration items in json, refer to configurations.
Install Graph

Graph is a component that stores drawing data and historical data. Transfer forwards the received data to graph.

Cd $ WORKSPACE/graph/mvcfg. example. jsoncfg. json # by default, all components are on the same server. json unchanged # cfg. for details about the configuration items in json, refer to configurations. If the test result is OK, the service is started normally. Curl-s "http: // 127.0.0.1: 6071/health"
Install Query

The query component is the interface for querying drawing data. After receiving a user's query request, the query component queries the corresponding data from multiple backend graphs and returns the aggregated data to the user.

Cd $ WORKSPACE/query/mvcfg. example. jsoncfg. json # by default, all components are on the same server. json unchanged # cfg. for the configuration items in json, see the https://github.com/open-falcon/query/blob/master/README.md#touchgraph_backends.txtecho "graph-00127.0.0.1: 6070"> graph_backends.txt start. /controlstart # view logs. /controltail
Install Dashboard

Dashboard is a user-oriented query interface. Here, you can view all the data pushed to the graph and its trend chart.

Install dependency

yuminstall-ypython-virtualenvmysql-devel#runasrootcd$WORKSPACE/dashboard/virtualenv./env./env/bin/pipinstall-rpip_requirements.txt

Configuration

# The config path is $ WORKSPACE/dashboard/rrd/config. py, which contains database-related configuration information. modify the configuration if necessary. By default (all components are on the same server), keep the default configuration. # initialize the database table structure. Refer to the Environment preparation stage.

Start

./controlstart-->gotohttp://127.0.0.1:8081

View logs

./controltail

Stop

./controlstop

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.