You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/03/17 04:08:00 UTC

[jira] [Commented] (TIKA-3327) Simple server metrics monitoring

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

ASF GitHub Bot commented on TIKA-3327:
--------------------------------------

Subhajitdas298 opened a new pull request #417:
URL: https://github.com/apache/tika/pull/417


   For TIKA-3327,
   
   Added very simple MBean for exposing ServerStatus (over an abstraction to enable readonly).
   
   This is **activated when status is enabled** using command line.
   
   This can be used along side Prometheus JMX exporter (or other tool like Jconsole).
   
   Sample Prometheus JMX exporter usage:
   
   Standalone: _java -javaagent:./jmx_prometheus_javaagent-0.15.0.jar=8080:../config/jmx-config.yaml -jar .\tika-server-1.26-SNAPSHOT.jar -status_
   
   Parent-Child mode: _java -cp .\tika-server-1.26-SNAPSHOT.jar org.apache.tika.server.TikaServerCli -status -spawnChild -Jjavaagent:./jmx_prometheus_javaagent-0.15.0.jar=8080:../config/jmx-config.yaml_
   
   Note: MBean works irrespective of java execution mode (-jar or -cp ..Cli). And JMX exporter by default exposes a lot of JVM metrices.
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Simple server metrics monitoring
> --------------------------------
>
>                 Key: TIKA-3327
>                 URL: https://issues.apache.org/jira/browse/TIKA-3327
>             Project: Tika
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 1.25
>            Reporter: Subhajit Das
>            Priority: Minor
>
> Currently only  /status endpoint is there as a simple monitoring endpoint. This can not be used directly as part of standard monitoring systems available.
> But no JMX MBeans or any other endpoint is there.
>  
> The status data can be exposed as an MBean.
>  
> This MBean can be then used by, something like Prometheus JMX exporter to export to Prometheus. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)