An open-source and enterprise-level monitoring system. http://open-falcon.org

yangbinnnn bef896a7ad [bugfix] Fix lastUpdate cache policy when information reporting of agent(#469) 6 years ago
.github 0ba2cd5ea6 Update issue templates 6 years ago
cmd 369c060d64 docs: add license 7 years ago
common 0f78593442 [new feature] judge support 3-sigma deviation function (https://github.com/open-falcon/falcon-plus/pull/601) 6 years ago
config 94e89962e8 底层io支持并发,添加参数至graph.json 7 years ago
docker 17cee49dd2 Add git clone parameter "--depth=1" 6 years ago
docs a4300331a6 modify doc due to issue 578 6 years ago
g 369c060d64 docs: add license 7 years ago
logos 9d3f196364 Add several logo files with transparent background 7 years ago
modules bef896a7ad [bugfix] Fix lastUpdate cache policy when information reporting of agent(#469) 6 years ago
scripts 9ac6e5a0b6 event表id字段类型mediumint=>int 6 years ago
test 2fc43f83d0 initial commit for open-falcon/open-falcon 9 years ago
vagrant 2fc43f83d0 initial commit for open-falcon/open-falcon 9 years ago
vendor a0a1723aae repair vendor.json rootPath github.com/open-falcon/falcon-plus 6 years ago
.gitignore ead05a77fe Update gitignore 6 years ago
.travis.yml 20127de898 add install command 7 years ago
CODE_OF_CONDUCT.md c0e6a09dff update: some description 6 years ago
CONTRIBUTING.md a47c087828 Create CONTRIBUTING.md 7 years ago
Dockerfile 6870319659 run falcon in docker container 6 years ago
LICENSE ac5822be05 update(common): add license 7 years ago
Makefile 6870319659 run falcon in docker container 6 years ago
NOTICE ac5822be05 update(common): add license 7 years ago
README.md c0e6a09dff update: some description 6 years ago
VERSION 9071ef2dc6 [conf] use default mysql password 7 years ago
api-standard.md c0e6a09dff update: some description 6 years ago
logo.png 1d59cb6f76 add open-falcon logo 8 years ago
main.go ac5822be05 update(common): add license 7 years ago
version.go ac5822be05 update(common): add license 7 years ago

README.md

Falcon+

Open-Falcon

Build Status codecov GoDoc Code Issues Go Report Card License

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 current version v0.2.0,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