open-falcon (一):docker安装部署

2018-02-02 18:21:00
aolens
原创
1094

安装方式:docker 安装

Open-Falcon,为前后端分离的架构,包含backend 和 frontend两部分:前段和后端
同时Open-Falcon采用分布式架构,需要在被监控的节点安装agent

1,安装
#安装docker
yum install docker git -y
#拉取docker镜像
docker pull openfalcon/falcon-plus:0.2.0
docker run -itd -p 8081:8081 -p 8433:8433 -p 3000:3000 openfalcon/falcon-plus:0.2.0 bash /run.sh hbs
#运行与docker-compose falcon-plus容器
pip install -U docker-compose
git clone https://github.com/open-falcon/falcon-plus.git
cd falcon-plus/docker/
docker-compose -f init.yml up -d falcon-plus
#运行mysql和redis容器
docker-compose -f init.yml up -d mysql redis
#停止和删除容器
docker-compose -f init.yml rm -f
#进入容器
docker exec -it CONTAINER_ID /bin/bash
[root@fcb503141071 /]# cd /home/work/open-falcon/
[root@fcb503141071 open-falcon]# ./open-falcon check
falcon-graph UP 198
falcon-hbs UP 209
falcon-judge UP 219
falcon-transfer UP 226
falcon-nodata UP 233
falcon-aggregator UP 241
falcon-agent UP 250
falcon-gateway UP 257
falcon-api UP 265
falcon-alarm UP 277
修改transfer 的监听IP为所有0.0.0.0
2,安装falcon agent
mkdir /home/falcon/src/github.com/open-falcon -p
export GOPATH=/home/falcon
cd /home/falcon/src/github.com/open-falcon
git clone https://github.com/open-falcon/falcon-plus.git
yum install go -y
cd falcon-plus/modules/agent/
go get
./control build
5.1.2
./control start
falcon-agent started..., pid=7591
ss -tnlp|grep agent
LISTEN 0 128 :::1988 :::* users:(("falcon-agent",pid=7591,fd=5))