You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "nicktelford (via GitHub)" <gi...@apache.org> on 2024/05/22 12:27:11 UTC
[PR] KAFKA-15541: Add iterator-duration metrics [kafka]
nicktelford opened a new pull request, #16028:
URL: https://github.com/apache/kafka/pull/16028
Part of [KIP-989](https://cwiki.apache.org/confluence/x/9KCzDw).
This new `StateStore` metric tracks the average and maximum amount of time between creating and closing Iterators.
Iterators with very high durations can indicate to users performance problems that should be addressed.
If a store reports no data for these metrics, despite the user opening Iterators on the store, it suggests those iterators are not being closed, and have therefore leaked.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-15541: Add iterator-duration metrics [kafka]
Posted by "mjsax (via GitHub)" <gi...@apache.org>.
mjsax merged PR #16028:
URL: https://github.com/apache/kafka/pull/16028
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-15541: Add iterator-duration metrics [kafka]
Posted by "mjsax (via GitHub)" <gi...@apache.org>.
mjsax commented on code in PR #16028:
URL: https://github.com/apache/kafka/pull/16028#discussion_r1610944460
##########
streams/src/main/java/org/apache/kafka/streams/state/internals/metrics/StateStoreMetrics.java:
##########
@@ -149,6 +149,14 @@ private StateStoreMetrics() {}
private static final String NUM_OPEN_ITERATORS_DESCRIPTION =
"The current number of iterators on the store that have been created, but not yet closed";
+ private static final String ITERATOR_DURATION = "iterator-duration";
+ private static final String ITERATOR_DURATION_DESCRIPTION =
+ "time spent between creating an Iterator and closing it, in nanoseconds";
Review Comment:
```suggestion
"time spent between creating an iterator and closing it, in nanoseconds";
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-15541: Add iterator-duration metrics [kafka]
Posted by "nicktelford (via GitHub)" <gi...@apache.org>.
nicktelford commented on PR #16028:
URL: https://github.com/apache/kafka/pull/16028#issuecomment-2124669562
@mjsax
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org