我是flink
的新手,已经用M1 pro芯片在我的macbook上安装了yarn
和flink
。
为了监控flink 1.13
的运行,我安装了grafana
、prometheus
和pushgateway
,就像我在互联网帖子上发现的一样,所有的web ui看起来都很好。
然后我将flink-conf.yaml
文件更改为以下图片,并将flink-metrics-prometheus-1.13.6.jar
复制到lib
文件夹中。并使用stop-cluster.sh
和start-cluster.sh
重新启动flink。
然而,pushgateway
仍然没有从flink
得到度量???
有人能告诉我怎么修吗?
真的很着急。非常感谢!!!
我解决了这个问题。我认为这很棘手,应该使用127.0.0.1
而不是localhost
metrics.reporter.promgateway.host: 127.0.0.1