Bhupendra Yadav
06/12/2023, 6:44 PM/jobs/:jobid endpoint). However, we have discovered that if a job fails (due to a Task Manager failure, for instance) and restarts from a checkpoint, the metrics counters are reset. Consequently, we cannot rely on these metrics alone.
One potential approach we are considering is writing the records to a side output for each operator, including a status indicating success or failure. Subsequently, we plan to utilize a query engine like Trino to analyze the side output and accurately calculate the number of processed records. However, we are concerned about the potential overhead of writing each record to the side output for every operator.
We would greatly appreciate insights from others who have tackled similar challenges. Specifically, we are interested in learning how people calculate such metrics with accuracy in mind, taking into account potential failures and without relying solely on the native metrics system.
Thank you all in advance for your valuable input!Alex Cruise
06/13/2023, 12:24 AMAlex Cruise
06/13/2023, 12:26 AMBhupendra Yadav
06/13/2023, 6:21 AMKen Krugler
06/23/2023, 7:16 PMValueState<Long> to accurately track the count across restarts, and expose this via a Flink metrics gauge?Alex Cruise
06/23/2023, 7:18 PM