3

I'm running a New Relic server agent on a couple Linux boxes (in R&D stage right now) for gathering performance data, CPU utilization, Memory, etc. I've the the NR API to get back available metrics and the names passable to them. However, I'm not entirely sure how to get that data back correctly (not convinced it's even possible at this point). The one I'm most concerned about this point is:

System/Disk/^dev^xvda1/Utilization/percent.

With available names:

[u'average_response_time', u'calls_per_minute', u'call_count', u'min_response_time', u'max_response_time', u'average_exclusive_time', u'average_value', u'total_call_time_per_minute', u'requests_per_minute', u'standard_deviation']

According to the NR API doc, the proper end point for this is https://api.newrelic.com/v2/servers/${APP_ID}/metrics/data.xml. Where I assume ${APP_ID} is the Server ID.

So, I'm able to send the request, however, the data I'm getting back is not at all what I'm looking for. Response:

          <average_response_time>0</average_response_time>
          <calls_per_minute>1.4</calls_per_minute>
          <call_count>1</call_count>
          <min_response_time>0</min_response_time>
          <max_response_time>0</max_response_time>
          <average_exclusive_time>0</average_exclusive_time>
          <average_value>0</average_value>
          <total_call_time_per_minute>0</total_call_time_per_minute>
          <requests_per_minute>1.4</requests_per_minute>
          <standard_deviation>0</standard_deviation>

Which would be what is expected. I think the data in these metrics is accurate, but I think they're to be taken at face value. However, the reason I even say they're to be taken for face value is based upon this statement in the NR API Docs:

Metric values include: Total disk space used, indicated by average_response_time Capacity of the disk, indicated by average_exclusive_time.

Which would lead one to believe that the data we want is is listed within one of the available name parameters for the the request. So, essentially my question is, is there a more specific way I need to hit the NR API to actually get the disk utilization as a percentage? Or is that not possible, even though I'm given to believe otherwise based upon the aforementioned information?. I'm hoping maybe there is information I'm missing here... Thanks!

AndrewSmiley
  • 1,933
  • 20
  • 32

0 Answers0