http://www.cnblogs.com/sunxucool/p/3906525.html
lume本身提供了http, ganglia的监控服务
#flume应用参数监控
bin/flume-ng agent -n consumer -c conf -f bin/conf.properties
-Dflume.monitoring.type=http -Dflume.monitoring.port=34545 &
这样就可以通过http://localhost:34545/metrics访问,结果是JSON repoting