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

本文介绍了如何使用Flume的JSON Reporting配合flume_exporter、Prometheus和Grafana进行监控。首先,详细讲述了部署flume_exporter的步骤,包括编译、配置和启动。接着,说明了如何将flume_exporter整合到Prometheus中,通过修改配置文件并重新加载实现监控指标的展示。最后,配置了Grafana仪表板和告警规则,确保告警生效并能在Prometheus和alertmanager中查看。
最低0.47元/天 解锁文章
371

被折叠的 条评论
为什么被折叠?



