2
1
mirror of https://github.com/open-falcon/falcon-plus synced 2020-06-03 17:55:20 +00:00
Go to file
2020-02-27 23:16:50 +08:00
cmd correct the path of log file when running open-falcon monitor command (#817) 2019-10-15 16:23:14 +08:00
common Influxdb support (#527) 2019-12-27 16:24:13 +08:00
config Influxdb support (#527) 2019-12-27 16:24:13 +08:00
docker init and run mysql from dockerfile (#858) 2020-02-19 18:47:39 +08:00
docs update api doc(#348) 2019-04-30 14:08:12 +08:00
g docs: add license 2017-09-12 15:39:42 +08:00
logos Add several logo files with transparent background 2017-08-09 14:25:23 +08:00
modules refactor(transfer): init transfer conn pool if enabled (#861) 2020-02-27 23:16:50 +08:00
scripts/mysql event表id字段类型mediumint=>int 2018-05-29 08:58:29 +08:00
test initial commit for open-falcon/open-falcon 2016-04-10 01:23:15 +08:00
vagrant initial commit for open-falcon/open-falcon 2016-04-10 01:23:15 +08:00
vendor Influxdb support (#527) 2019-12-27 16:24:13 +08:00
.dockerignore reduce docker image size (#615) 2018-11-16 22:08:48 +08:00
.gitignore Update gitignore 2018-10-26 22:40:20 +08:00
.travis.yml run test case in docker via travis-ci (#622) 2018-11-21 17:53:21 +08:00
api-standard.md update: some description 2018-07-03 00:11:56 +08:00
CODE_OF_CONDUCT.md update: some description 2018-07-03 00:11:56 +08:00
CONTRIBUTING.md Create CONTRIBUTING.md 2017-06-18 22:59:19 +08:00
docker_test.sh Using local time zone in mysql dsn config (#744) 2019-05-13 19:11:08 +08:00
Dockerfile reduce docker image size using multi-stage building (#671) 2019-05-13 18:23:02 +08:00
LICENSE update(common): add license 2017-05-20 00:09:16 +08:00
logo.png add open-falcon logo 2017-01-17 04:24:22 +08:00
main.go make modules version more consistent (#816) 2019-10-15 12:00:52 +08:00
Makefile merge gateway to transfer code base (#845) 2019-12-24 22:29:14 +08:00
NOTICE update(common): add license 2017-05-20 00:09:16 +08:00
README.md update readme for v0.3 (#752) 2019-05-30 17:10:49 +08:00
VERSION make modules version more consistent (#816) 2019-10-15 12:00:52 +08:00
version.go make modules version more consistent (#816) 2019-10-15 12:00:52 +08:00

Falcon+

Open-Falcon

Build Status codecov GoDoc Code Issues Go Report Card License Backers on Open Collective Sponsors on Open Collective

Documentations

Prerequisite

  • Git >= 1.7.5
  • Go >= 1.6

Getting Started

Docker

Please refer to ./docker/README.md.

Build from source

before start, please make sure you prepared this:

yum install -y redis
yum install -y mysql-server

NOTE: be sure to check redis and mysql-server have successfully started.

And then

# Please make sure that you have set `$GOPATH` and `$GOROOT` correctly.
# If you have not golang in your host, please follow [https://golang.org/doc/install] to install golang.

mkdir -p $GOPATH/src/github.com/open-falcon
cd $GOPATH/src/github.com/open-falcon
git clone https://github.com/open-falcon/falcon-plus.git

And do not forget to init the database first (if you have not loaded the database schema before)

cd $GOPATH/src/github.com/open-falcon/falcon-plus/scripts/mysql/db_schema/
mysql -h 127.0.0.1 -u root -p < 1_uic-db-schema.sql
mysql -h 127.0.0.1 -u root -p < 2_portal-db-schema.sql
mysql -h 127.0.0.1 -u root -p < 3_dashboard-db-schema.sql
mysql -h 127.0.0.1 -u root -p < 4_graph-db-schema.sql
mysql -h 127.0.0.1 -u root -p < 5_alarms-db-schema.sql

NOTE: if you are upgrading from v0.1 to v0.2.0(or above),then. More upgrading instruction

mysql -h 127.0.0.1 -u root -p < 5_alarms-db-schema.sql

Compilation

cd $GOPATH/src/github.com/open-falcon/falcon-plus/

# make all modules
make all

# make specified module
make agent

# pack all modules
make pack
  • after make pack you will got open-falcon-vx.x.x.tar.gz
  • if you want to edit configure file for each module, you can edit config/xxx.json before you do make pack

Unpack and Decompose

export WorkDir="$HOME/open-falcon"
mkdir -p $WorkDir
tar -xzvf open-falcon-vx.x.x.tar.gz -C $WorkDir
cd $WorkDir

Start all modules in single host

cd $WorkDir
./open-falcon start

# check modules status
./open-falcon check

Run More Open-Falcon Commands

for example:

# ./open-falcon [start|stop|restart|check|monitor|reload] module
./open-falcon start agent

./open-falcon check
        falcon-graph         UP           53007
          falcon-hbs         UP           53014
        falcon-judge         UP           53020
     falcon-transfer         UP           53026
       falcon-nodata         UP           53032
   falcon-aggregator         UP           53038
        falcon-agent         UP           53044
      falcon-gateway         UP           53050
          falcon-api         UP           53056
        falcon-alarm         UP           53063
  • For debugging , You can check $WorkDir/$moduleName/logs/xxx.log

Install Frontend Dashboard

NOTE: if you want to use grafana as the dashboard, please check this.

Package Management

We use govendor to manage the golang packages. Please install govendor before compilation.

go get -u github.com/kardianos/govendor

Most depended packages are saved under ./vendor dir. If you want to add or update a package, just run govendor fetch xxxx@commitID or govendor fetch xxxx@v1.x.x, then you will find the package have been placed in ./vendor correctly.

Package Release

make clean all pack

API Standard

Q&A

  • Any issue or question is welcome, Please feel free to open github issues :)
  • FAQ

Contributors

This project exists thanks to all the people who contribute. [Contribute].