How to get serverinfo metrics in Grafana

Hello here!

Today I have discovered my serverinfo page by searching about metrics for my plateform.
There is nice data inside but I don’t know how to collect this XML or JSON format.

I use Grafana and prometheus for the major part of my infrastructure.
Of course, I found it: https://github.com/xperimental/nextcloud-exporter
But I had some scraping errors and there is no whole datas available.

Anybody know how to collect serverinfo data to Grafana ?

You can access server statistics using the API link, which you find at the bottom of the Systems details:

https://<fqdn-of-server>/ocs/v2.php/apps/serverinfo/api/v1/info
  or
https://<fqdn-of-server>/ocs/v2.php/apps/serverinfo/api/v1/info?format=json

Hi @j-ed thanks for answer.

I know this two link but I don’t want to check this link manually.

My aim is to setup a graph on grafana and configure alerting from alertmanager for example.