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

Marcel Reutegger commented on OAK-8113:
---------------------------------------

I would keep exporting of the metrics separate from where the metrics are 
captured. The main reason is decoupling. In order to add support for 
prometheus, we need to add those libraries, but there are other systems as well 
and we may end up adding many different libraries when at most one is needed at 
runtime.

Did you consider running the push gateway in a separate process and establish a 
JMX connection to oak-run?

> Add ability to push metrics to prometheus pushgateway from oak-run
> ------------------------------------------------------------------
>
>                 Key: OAK-8113
>                 URL: https://issues.apache.org/jira/browse/OAK-8113
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: oak-run
>            Reporter: Amit Jain
>            Assignee: Amit Jain
>            Priority: Major
>             Fix For: 1.12
>
>         Attachments: OAK-8113.patch
>
>
> Currently, metrics capturing is supported in oak-run but these are not 
> exported. If some important tasks like DSGC are run outside of the server 
> using oak-run then it would be helpful help if these important metrics 
> captured, can be pushed to an external system if available and from where any 
> reporting can be developed.
> This task is specifically meant for prometheus pushgateway 
> https://github.com/prometheus/client_java though there are some other export 
> options also available.



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

Reply via email to