Migration SimpleJSON to Infinity for Plesk Server Monitoring

We use a Grafana dashboard to monitor CPU from 10 servers. Everything worked perfectly with the old SimpleJSON data source plugin. But we recently migrated to a new server and now the entire dashboard is broken.

I discovered that SimpleJSON is deprecated, so we installed Infinity and tried adding the same data sources, but it doesn’t work.

“error while performing the infinity query. unable to parse response body as JSON. unexpected end of JSON input”

This is the guide I followed to build the dashboard, but it’s outdated and still says to use the old Simple JSON data source

If I understand correctly, Plesk monitoring endpoint is in RRD format (Round Robin Database API endpoint), because the command to get the token is “SELECT value FROM params WHERE name = ‘rrd_api_auth_token’”

After following the guide, I get a URL like this:
https://ns654656.ip-124-117-21.net:8443/modules/monitoring/public/index.php/jsdgh645HDjkfsdkhfHKD456fsdhkfjsSKDJFhFKDS

If I open this URL in my browser, it’s a blank page without any JSON. It was working with the SimpleJSON data plugin, but it seems like Infinity is expecting a raw JSON on this URL and I don’t know how to get this from the remote Plesk server.

Any help would be much appreciated.

might this be of help?

Seems like the Plesk API is for managing Plesk stuff, like creating users, managing the DNS, and so on. Can’t find how to get monitoring data in JSON format.

1 Like

Can you access the database?

So nobody using Grafana anymore with remote Plesk servers?
This thing is dead and the update broke everything?

We are about to give up on this garbage product.

Which product?

Grafana Labs announced that it has moved past $250 million in annual recurring revenue, and now has more than 5000 paying customers, up from 2000 in 2022. The customer base includes major enterprises like Dell Technologies, Microsoft, Salesforce, and Citigroup.

But it’s not a product, right? :man_facepalming: