Flink】Flink连接prometheus 端口报错 Invalid host/port configuration. Host xxx Port -1

1.美图

在这里插入图片描述

2.背景

本地运行flink,然后连接本地的prometheus端口正确,但是运行总是报错

conf.setString("metrics.reporter.promgateway.class", "org.apache.flink.metrics.prometheus.rometheusPushGatewayReporter")
conf.setSting("metrics.reporter.promgateway.host", 

猜你喜欢

转载自blog.csdn.net/qq_21383435/article/details/105555420