You can use the API to directly fetch a graph in PNG format so you won't have to use a library to convert the data to a chart.

The API endpoint is as follows:,st:steal&min=0&max=100&width=1200&height=300

This will request the CPU Idle and CPU Steal values.

The key attribute is optional. If you exclude it will return all keys. The key attribute can also contain a "pretty name".,st:steal&device=0,1&min=0&max=100&width=1200&height=300

This will request the CPU idle and steal values for core 0 and 1

These requests will return the following JSON data:


Here's an example of a chart exported by the API.

Was this article helpful?
Thank you!