简体   繁体   中英

How to use metrics system or similar things for WindowedStream data?

I would like to measure the throughput of each window in Apache Flink. The metrics does not fit WindowedStream since it said it does not support RichFunction as AggregateFunction. I used singleton instance instead but someone said it not good for distributed environment. (locally run ok) Are there any solutions for this situation?

There are built-in metrics measuring

numBytesInLocalPerSecond
numBytesInRemotePerSecond
numBytesOutPerSecond
numRecordsInPerSecond
numRecordsOutPerSecond

These throughput metrics are available out-of-the-box for every operator (except for the input metrics for sources, and output metrics for sinks), including windows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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