大家好: 我这边采用Flink on Yarn 模式部署。Metrics 收集用的PrometheusPushGateway。发现metric不连续,有的很久都没有给出数据。 我的配置如下:
#============================================================================== ## Metrics Configuration #============================================================================== metrics.reporter.promgateway.class: org.apache.flink.metrics.prometheus.PrometheusPushGatewayReporter metrics.reporter.promgateway.host: 10.201.3.156 metrics.reporter.promgateway.port: 9091 metrics.reporter.promgateway.jobName: FlinkJob metrics.reporter.promgateway.randomJobNameSuffix: true metrics.reporter.promgateway.deleteOnShutdown: true # metrics.reporter.promgateway.interval: 5 SECONDS 如果有知道的,麻烦告知一下。