I'm using Flink and FlinkCEP for Detection of Complex Events on Datastreams. For research purposes, I need to measure solely the recognition time.
I am using Flink / FlinkCEP - 1.7.1
. I am creating the stream within the Flink Environment using the env.fromCollection()
function.
After that, I am using FlinkCEP: CEP.pattern(....)
along with other select
and print
functions.
I only found this post: Measure job execution time in flink that helped a lot. It suggests a solution that returns the execution time of the streaming environment process. This is not precisely what I'm looking for.
I noticed that the returned value includes the time of other operators such as .assignAscendingTimestamps(x => x.TimeStamp())
and thus I couldn't use it.
Is there a way to measure only the time of CEP.pattern
process?
I also couldn't find a metric that would help me in this case, unless I missed something...