[
https://issues.apache.org/jira/browse/OAK-3791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15059625#comment-15059625
]
Chetan Mehrotra commented on OAK-3791:
--------------------------------------
bq. I considered a DocumentStore wrapper that measures every method ( very
similar to what TimingDocumentStoreWrapper does, but with Timer metrics). The
main issue is that on cache hit the call is instant, but on cache miss the call
will take time. It might be more useful to track separately cached/uncached
methods.
Thats why the stats need to be collected from *within* the implementation
classes.
bq. While exposing new metrics in StatisticsProvider as JMX Mbeans is simple,
exposing new TimeSeries needs changes in RepositoryStats/MBean
Need not be. We can have independent MBeans and have it exposed there. For an
e.g. have a look at IndexStatsMBean#getExecutionTime
> Time measurements for DocumentStore methods
> -------------------------------------------
>
> Key: OAK-3791
> URL: https://issues.apache.org/jira/browse/OAK-3791
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core, documentmk
> Reporter: Teodor Rosu
> Priority: Minor
>
> For monitoring ( in big latency environments ), it would be useful to measure
> and report time for the DocumentStore methods.
> These could be exposed as (and/or):
> - as Timers generated obtained from StatisticsProvider ( statistics registry )
> - as TimeSeries
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)