List CPU load data (v2)


For the latest, most advanced host monitoring, check out New Relic Infrastructure.

Here is an example of how to use the New Relic REST API (v2) to obtain CPU load information for a specific server ID and API key. By default, this will provide a list of values every minute for the last 30 minutes in JSON format.

When acquiring data, the values returned may be affected by the time period you specify and the way the data is stored. For more information, see Extracting metric timeslice data.

API call

To obtain this data, include the metric name System/Load and values for average_value in your API call. For example:

curl -X GET '${SERVERID}/metrics/data.json' \
     -H "X-Api-Key:${APIKEY}" -i \
     -d 'names[]=System/Load&values[]=average_value' 

For more help

Additional documentation resources include: