数仓--open-falcon配置flume监控

2020-01-17  本文已影响0人  李小李的路

open-falcon配置flume监控

配置步骤:

flume配置项

cd  ${flume_home}/conf
cp lume-env.sh.template  lume-env.sh
# 添加语句,http的端口指定为3000
export JAVA_OPTS="$JAVA_OPTS -Dflume.monitoring.type=http -Dflume.monitoring.port=3000"
#!/bin/bash
nohup bin/flume-ng agent -c conf -f conf/flume_s3_taildir.conf  -n a1 -Dflume.monitoring.type=http -Dflume.monitoring.port=3000 > logs/flume_a1.log 2>&1 &

open-falcon配置

    "plugin": {
        "enabled": true,
        "dir": "./plugin",
        "git": "https://github.com/mdh67899/openfalcon-monitor-scripts.git",
        "logs": "./logs"
    },
git clone https://github.com/mdh67899/openfalcon-monitor-scripts.git
cd openfalcon-monitor-scripts 
mv flume ${open-falcon-home}/plugin/
# 为脚本添加执行权限
cd  ${open-falcon-home}/plugin/flume
chmod +x 60_flume-monitor.py
./open-falcon restart agent
#查看agent启动日志
tail -f ${open-falcon-home}/agent/logs/agent.log
#查看监控脚本执行日志
tail -f  ${open-falcon-home}ogs/flume/60_flume-monitor.py\(\).stderr.log
上一篇 下一篇

猜你喜欢

热点阅读