未显示Flink延迟指标 [英] Flink latency metrics not being shown
问题描述
在本地环境中运行Flink 1.5.0时,我试图通过REST(类似于http://localhost:8081/jobs/e779dbbed0bfb25cd02348a2317dc8f1/vertices/e70bbd798b564e0a50e10e343f1ac56b/metrics
的东西)获取延迟指标,但是没有对latency
的引用.
While running Flink 1.5.0 with a local environment I was trying to get latency metrics via REST (with something similar to http://localhost:8081/jobs/e779dbbed0bfb25cd02348a2317dc8f1/vertices/e70bbd798b564e0a50e10e343f1ac56b/metrics
) but there isn't any reference to latency
.
所有这些在启用延迟跟踪的同时,我通过与调试器确认LatencyMarksEmitter
正在发出标记来确认.
All of this while the latency tracking is enabled which I confirmed by checking with the debugger that the LatencyMarksEmitter
is emiting the marks.
我该怎么办?
推荐答案
在1.5中,延迟指标未针对任务公开,而是针对作业,原因是延迟指标固有地包含有关多个任务的信息.您必须查询" http://localhost:8081/jobs/e779dbbed0bfb25cd02348a2317dc8f1/metrics "
In 1.5 latency metrics aren't exposed for tasks but for jobs instead, the reasoning being that latency metrics inherently contain information about multiple tasks. You have to query "http://localhost:8081/jobs/e779dbbed0bfb25cd02348a2317dc8f1/metrics" instead.
这篇关于未显示Flink延迟指标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!