serverinfo icon indicating copy to clipboard operation
serverinfo copied to clipboard

Export more metrics via ocs/v2.php/apps/serverinfo/api/v1/info

Open GillesMocellin opened this issue 1 year ago • 1 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Is your feature request related to a problem? Please describe. I want to have a general overview of Nextcloud usage via Grafana/Prometheus + nextcloud-exporter. But the data coming from the API /ocs/v2.php/apps/serverinfo/api/v1/info lak at least one very useful information : the storage used, even if primary storage is on an external S3 system. I don't know if it's possible to go further and add storage by user (perhaps not in that general API but associated with the app https://apps.nextcloud.com/apps/user_usage_report) Perhaps that's what should be in the actual num_storages_other metric ?

Describe the solution you'd like I'd like to see global storage usage in /ocs/v2.php/apps/serverinfo/api/v1/info, not only for local storage.

Describe alternatives you've considered I'm in the process of trying an SQL query Prometheus exporter (https://github.com/albertodonato/query-exporter), to see if I can get total and user usage in my Grafana Dashboard.

GillesMocellin avatar Apr 03 '23 09:04 GillesMocellin

This Issue needs to get moved over to https://github.com/nextcloud/serverinfo

joshtrichards avatar Jun 05 '23 22:06 joshtrichards