[ 
https://issues.apache.org/jira/browse/KAFKA-16811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17848797#comment-17848797
 ] 

Rohan Desai commented on KAFKA-16811:
-------------------------------------

Alternatively, or perhaps in addition to a pre-windowed value, we can add a 
metric that measures the total time spent in punctuate since the StreamThread 
was created. Then, users can compute the time spent in the window of their 
choice downstream of the application by taking the value of the metric at the 
beginning of the window and subtracting that from the value of the metric at 
the end of the window.

> Punctuate Ratio metric almost impossible to track
> -------------------------------------------------
>
>                 Key: KAFKA-16811
>                 URL: https://issues.apache.org/jira/browse/KAFKA-16811
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>    Affects Versions: 3.7.0
>            Reporter: Sebastien Viale
>            Priority: Minor
>
> The Punctuate ratio metric is returned after the last record of the poll 
> loop. It is recomputed in every poll loop.
> After a puntuate, the value is close to 1, but there is little chance that 
> metric is sampled at this time. 
> So its value is almost always 0.   
> A solution could be to apply a kind of "sliding window" to it and report the 
> value for the last x seconds.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to