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.