简体   繁体   English

Flink 应用的流式指标

[英]Streaming metrics for Flink application

I have set up Flink UI for application running in Intellij IDEA.我已经为在 Intellij IDEA 中运行的应用程序设置了 Flink UI。 I would like to get some streaming metrics like - scheduling delay and processing time.我想获得一些流媒体指标,例如 - 调度延迟和处理时间。 However, I can not find the anywhere in UI.但是,我在 UI 中找不到任何地方。 Should there be some specific setup for that or should I explicitly submit app jar?是否应该为此进行一些特定设置,还是应该明确提交应用程序 jar?

Currently, Flink UI for the job looks like this:目前,作业的 Flink UI 如下所示:

英石

All of the task metrics are exposed in the web UI, as Dominik mentioned, but for other metric scopes (eg, job metrics) only some selected metrics are displayed.正如 Dominik 所提到的,所有任务指标都在 Web UI 中公开,但对于其他指标范围(例如,作业指标),仅显示一些选定的指标。 You can access all of the metrics via the REST API or by connecting a metrics reporter to send the metrics to an external metrics system.您可以通过REST API或通过连接指标报告器将指标发送到外部指标系统来访问所有指标。

I don't think any attempt has been to made to measure scheduling delay, but in the job metrics you will find things like restarting time and uptime .我认为没有任何尝试来衡量调度延迟,但在作业指标中,您会发现诸如重新启动时间和正常运行时间之类的东西。

In the UI you should have a tab Task Metrics when You select the currently running job.在 UI 中,当您选择当前正在运行的作业时,您应该有一个选项卡Task Metrics This tab allows You to choose a task and see all the metrics that are available.此选项卡允许您选择一项任务并查看所有可用的指标。 Although, I am not sure if the scheduling delay is one of currently available metrics.虽然,我不确定调度延迟是否是当前可用的指标之一。

Probably the better idea is to refer to expose the metrics for some collector of Your choice, You can find more info in the documentation: https://ci.apache.org/projects/flink/flink-docs-stable/monitoring/metrics.html .可能更好的主意是参考公开您选择的某些收集器的指标,您可以在文档中找到更多信息: https : //ci.apache.org/projects/flink/flink-docs-stable/monitoring/metrics .html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM