hansmi / prometheus-paperless-exporter

Paperless-ngx metrics for Prometheus
BSD 3-Clause "New" or "Revised" License
27 stars 1 forks source link

Provide total statistics metrics #39

Open jan-di opened 3 weeks ago

jan-di commented 3 weeks ago

It would be great, if the exporter also provides metrics that represent the statistics from the UI:

grafik
hansmi commented 3 weeks ago

I had a quick look at what's necessary/possible. Statistics aren't part of the documented REST API.

Implementation:

hansmi commented 2 weeks ago

The "inbox" tag flag is reported as a metric with https://github.com/hansmi/prometheus-paperless-exporter/commit/df7648d9810e3f2d4eddb59a92f5a569af570d7a.

"Total documents" will/would require changes to the underlying Paperless-ngx client library. @jan-di, do you have a usecase other than "it would be great"?

jan-di commented 1 week ago

No, actually not. Its just for measuring growth as I thought its just an API that can be piped through to metrics. If its that much work, its not worth it.

I'm instead thinking of providing a docs MR to paperless, maybe the statistics API is already official but just not documented. If its assured that it is stable, this would make this issue much easier.