Flume提供了四种监控方式:JMX Reporting、Ganglia Reporting、JSON Reporting、Custom Reporting,选择最简单的JSON Reporting方式,监控方案是
JSON Reporting + flume_exporter + Prometheus + Grafana。
JSON Reporting请参考官方文档
http://flume.apache.org/releases/content/1.9.0/FlumeUserGuide.html#monitoring
flume_exporter github地址
https://github.com/woozhijun/flume_exporter
Prometheus + Grafana的使用可参考
https://www.ibm.com/developerworks/cn/cloud/library/cl-lo-prometheus-getting-started-and-practice/index.html
https://www.jianshu.com/p/e59cfd15612e