Search code examples
ioscpu-usagenewrelic

Avg. CPU usage on NewRelic


NewRelic is showing Avg. CPU usage as 11200% for my app. What could be the issue. My app seems to work fine on my iPhone and no user ever reported any battery degradation because of my app. Is there anyone else facing the same issue? How to debug?

enter image description here


Solution

  • Infrastructure Hosts page calculate CPU average using several attributes

    CPU percentage is not collected by New Relic, but derived from several other metrics. Specifically, the cpuPercent attribute is an aggregation of cpuUserPercent, cpuSystemPercent, cpuIoWaitPercent and cpuStealPercent

    Probably at least one of them is wrong

    You can ask this question (or report a bug) in discuss newrelic infrastructure

    Or write NRQL query in Insights to check these attributes using SystemSample

    To query Infrastructure event data, use the NRQL syntax with the Insights Data Explorer:

    Go to insights.newrelic.com > Data Explorer. From the query command line, use FROM before the event type.

    select cpuUserPercent , cpuSystemPercent , cpuIOWaitPercent , cpuStealPercent from SystemSample