open-falcon部署

#falcon-plus server部署:

https://github.com/open-falcon/falcon-plus/tree/master/docker

Running falcon-plus container

docker pull openfalcon/falcon-plus:0.2.0

docker run -itd -p 8081:8081 -p 6030:6030  -p 8433:8433 --name falcon openfalcon/falcon-plus:0.2.0 bash /run.sh hbs

#1、官網給的說明有問題,需要開放8433 端口,否則agent 無法上傳數據

#2、啓動容器後,需要修改鏡像內 transfer 配置文件,將監聽127.0.0.1 改成0.0.0.0 然後重啓進程



#falcon-agent 安裝部署:

1、直接使用官方編譯好的二進制包,改方式agent包太大,不利於部署。

wget https://github.com/open-falcon/falcon-plus/releases/download/v0.2.1/open-falcon-v0.2.1.tar.gz

tar -zxvf  open-falcon-v0.2.1.tar.gz && cd open-falcon

./open-falcon start agent  啓動進程

./open-falcon stop agent  停止進程

./open-falcon monitor agent  查看日誌




2、https://github.com/open-falcon-archive/agent

# set $GOPATH and $GOROOT

mkdir -p $GOPATH/src/github.com/open-falcon

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

git clone https://github.com/open-falcon/agent.git

cd agent

go get ./...

./control build    //構建

./control pack     //打包,此時會生成 falcon-agent-5.1.1.tar.gz壓縮包。

./control start    //啓動agent

將壓縮包傳到本地,解壓後執行./control start 即可。配置文件修改,請參考官方說明。


#本地負載界面: http://localhost:1988


雖然是開源工具,但是官方github上還是存在有問題的地方。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章