List CPU load data (v2)


New Relic Servers is no longer available. For infrastructure monitoring, please use New Relic Infrastructure. For how to switch to Infrastructure from Servers, see the transition guide.

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:

New Relic Servers is unavailable as of May 15, 2018. For more information: