How to create dynamic metric in Flink

泄露秘密 提交于 2020-11-29 03:50:26

问题


I want to create one metric related to the number of errors but in fact I would like to add some contextual labels ? What is the best way to do that ? gauge ? How to create this kind of metric dynamically during the run of the task (because open method is not possible because too early) ? Thanks in advance

David


回答1:


You should be able to create a metric whenever you want -- just do it once per operator instance, before you use it.

For error reporting you might find side outputs useful as well.



来源:https://stackoverflow.com/questions/56694833/how-to-create-dynamic-metric-in-flink

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!