版本:Flink kubernetes operator1.7.0
问题:在参考文章https://blog.youkuaiyun.com/wu892355227/article/details/129334218?spm=1001.2014.3001.5506进行如下PrometheusReporter配置后,在prometheus webui报错:Get "http://IP:9999/metrics": dial tcp IP:9999: connect: connection refused
defaultConfiguration:
# ...
flink-conf.yaml: |+
# Flink Config Overrides
# ... (other configurations)
# Add Prometheus reporter configuration
metrics.reporters: prom
kubernetes.operator.metrics.reporter.prom.class: org.apache.flink.metrics.prometheus.PrometheusReporter
kubernetes.operator.metrics.reporter.prom.port: 9999
# ...
metrics:
port: 9999
排查:执行kubectl logs -n flink -l app.kubernetes.io