pdeva
pdeva

Reputation: 45491

New relic not acknowledging metric data

I am sending the following json:

{
  "components": [
    {
      "guid": "com.mycompany.MyPlugin",
      "duration": 60,
      "metrics": {
        "Component/Memory/Heap Used[bytes]": 146990608,
        "Component/Processor/GC[percent]": 0.5555555555555556,
        "Component/Memory/Heap Max[bytes]": 39387136,
        "Component/Processor/CPU[percent]": 66.66666666666667,
        "Component/Memory/Heap Committed[bytes]": 279714288
      },
      "name": "MyPlugin"
    }
  ],
  "agent": {
    "host": "host",
    "pid": 0,
    "version": "1.0.0"
  }
}

The Component/Memory/* metrics are properly recognized by new relic and i am able to create dashboards.

But, the Component/Processor/* metrics dont seem to acknowledged at all. I cant see them in the dropdown list of metric names when i create a new dashboard and even typing the name manually doesn't work since new relic says no such metric exists.

Upvotes: 3

Views: 384

Answers (2)

Brett H
Brett H

Reputation: 1169

EDIT:

Try curling with your data as a test:

curl -vi https://platform-api.newrelic.com/platform/v1/metrics 
     -H "X-License-Key: <LICENSE_KEY>"
     -H "Content-Type: application/json"
     -H "Accept: application/json"    
     -X POST -d '<JSON_DATA>'

Upvotes: 0

user724498
user724498

Reputation:

It is recommended that GUID values be all lower case. At present GUIDs with differing case are treated as unique.

Upvotes: 2

Related Questions