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

Vikas Saurabh commented on OAK-7904:
------------------------------------

Ideally, I'd have preferred if say {{Root}} could expose the whiteboard 
instance but it'd require a lot of changes all over the place. Maybe a shout 
out to oak-dev makes sense!? There got to be other places in other POJO type 
oak stuff where we'd like to inject metrics getting recorded.

As a second idea, maybe we can expose {{StatisticsProvider}} instance from 
{{Oak}} into {{QueryEngineSettings}} (I'd have loved to have whiteboard 
instance but {{QueryEngineSettings}} feels like a wrong place to put it in).

About the patch - one other concern that I have is that we'd need to keep 
polling for statisticsProvider being non-null until we get a reference. Also, 
btw, if we go by the current patch, the statisticsProvider instance probably 
needs to be volatile.

> Exporting query duration per index metrics with Sling Metrics / DropWizard
> --------------------------------------------------------------------------
>
>                 Key: OAK-7904
>                 URL: https://issues.apache.org/jira/browse/OAK-7904
>             Project: Jackrabbit Oak
>          Issue Type: Task
>          Components: indexing, query
>            Reporter: Paul Chibulcuteanu
>            Priority: Major
>             Fix For: 1.9.10
>
>         Attachments: OAK-7904.0.patch
>
>
> Purpose of this task is to evaluate & create metric which calculates the 
> average duration of query for each index.
> This metric can be later used to evaluate which index(s) need to be optimised.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to