背景
上一篇文章介绍了根据flink 官方的metric reporter , 选择influxdb 保存metrics 来监控 flink指标, 因为自己构件grafana dashboard 的经验不多,在grafana dashboards 列表中找到别人导出的一个模版也不是很满足需求,而看到网上大家利用 Grafana + Prometheus 做监控的比较多,所以这篇文章在做一次Flink report 到 Prometheus 的 setup 和使用 。
虽然市面上(网上)这些文章很多了,但是项目中确实需要安装设置一遍,所以这里只是做一个记录 。
Grafana
参见上一篇文章 ,使用的是同一个 Grafana 服务和配置,对于它来说,这次只是数据源添加了一个 Prometheus
grafana 添加 prometheus datasource ,请自行搜索 ~
Prometheus
架构图

下载 prometheus 和 push gateway
https://prometheus.io/download/
wget

本文档记录了如何将Flink的metrics报告到Prometheus,并使用Grafana进行监控。首先介绍了背景,然后详细阐述了启动Grafana的Prometheus数据源,部署和配置Prometheus及Pushgateway。最后,配置Flink以写入Prometheus,并在Grafana中导入和创建Flink的dashboard。
最低0.47元/天 解锁文章
1032

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



