Export charts directly to PNG format

You can use the 360 Monitoring API to directly fetch a graph in PNG format. This way, you won’t need to use a library to convert the data to a chart.

API information

The 360 Monitoring API uses the following endpoint:

https://api.eu.monitoring.platform360.io/v1/server/SERVER_ID/metrics?token=API_TOKEN&output=png&metric=cpu&key=i:idle,st:steal&min=0&max=100&width=1200&height=300

This example will request the CPU Idle and CPU Steal values.
The key attribute is optional. If you exclude the key attribute, the API will return all keys. The key attribute can also contain a display name:

https://api.eu.monitoring.platform360.io/v1/server/SERVER_ID/metrics?token=API_TOKEN&output=png&metric=cpu&key=i:idle,st:steal&device=0,1&min=0&max=100&width=1200&height=300

This example will request the CPU Idle and CPU Steal values for CPU cores 0 and 1.

Returns

These requests will return the following JSON data:

{"uri":"https:\/\/api.eu.monitoring.platform360.io\/tmp\/JwAKsZH3LrtFAfTIdbFhPb48uEfvTwaC31mvO3yAu2g5h9OultMaFQj9dyE65PI8.png"}