Hi Tim,

OpenAPI is for live API, usage + documentation. OpenAPI can replace the “/” 
welcome page (where all APIs are listed) and give a much more modern experience.

While metrics monitoring is a separate concern. This, exposes the metrics data, 
like how many requests, how much time, jvm metrics, other custom metrics, like 
how many files processed etc.

Here we would have to inject the metric gauges programmatically. And let 
micrometer expose the value.

Note: Monitoring always introduces a minor (some times negligible) performance 
overhead. So, an option has to be given to switch on/off monitoring. Just like 
Solr does. But, it can be simple as a command line flag.

Thanks and Regards,
Subhajit

From: Tim Allison<mailto:[email protected]>
Sent: 16 March 2021 11:40 PM
To: Subhajit Das<mailto:[email protected]>
Cc: [email protected]<mailto:[email protected]>
Subject: Re: Prometheus exporter for TikaServer

Interesting...Does this play at all with OpenAPI?
https://issues.apache.org/jira/browse/TIKA-3082

On Tue, Mar 16, 2021 at 1:35 PM Subhajit Das <[email protected]> wrote:
>
> Hi Tim,
>
>
>
> Prometheus requires data in it’s format. It seems that Tika does not have 
> extended metrics collection system (correct me, if I am wrong).
>
> The status is storing  status in ServerStatus object, which dosen’t seems to 
> be exposed as MBean.
>
> If this is exposed as MBean, basic requirement may be fulfilled with 
> Prometheus JMX Exporter (https://github.com/prometheus/jmx_exporter) as a 
> Javaagent.
>
>
>
> For more advanced,
>
> Solr uses Dropwizard 
> (https://solr.apache.org/guide/8_8/metrics-reporting.html) for metrics, and a 
> separate Prometheus exporter 
> (https://solr.apache.org/guide/8_8/monitoring-solr-with-prometheus-and-grafana.html)
>  to export metrics to Prometheus.
>
>
>
> But, a better solution might be to use Micrometer (https://micrometer.io/), 
> as it supports inbuild exporting for multiple standards, and this is also 
> standard for new Spring Boot 2.0 projects.
>
>
>
> Thanks,
>
> Subhajit
>
>
>
> From: Tim Allison
> Sent: 16 March 2021 09:32 PM
> To: [email protected]
> Subject: Re: Prometheus exporter for TikaServer
>
>
>
> We have only a barebones /status endpoint at the moment.  You have to
> configure it/turn it on.  It is not available by default.  If there
> are specific statistics or a specific format you need for integration
> with Prometheus, please let us know.
>
> On Mon, Mar 15, 2021 at 4:06 AM Subhajit Das <[email protected]> wrote:
> >
> > Hi,
> >
> >
> >
> > Is there any Prometheus exporter functionally, on TikaServer?
> >
> > Need details on status endpoint over Prometheus as well.
> >
> >
> >
> > Then have to setup a Grafana dashboard for the same.
> >
> >
> >
> > Thanks in advance.
> >
> >
>
>

Reply via email to