新遗物未确认度量标准数据

时间:2013-07-01 18:19:22

标签: newrelic-platform

我发送以下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"
  }
}

Component/Memory/*指标可以被新文件正确识别,我可以创建信息中心。

但是,Component/Processor/*指标似乎根本没有得到承认。当我创建新的仪表板时,我无法在度量标准名称的下拉列表中看到它们,甚至手动输入名称也不起作用,因为新的遗物说没有这样的度量标准。

2 个答案:

答案 0 :(得分:2)

建议GUID值全部小写。目前,具有不同案例的GUID被视为唯一。

答案 1 :(得分:0)

编辑:

尝试将数据作为测试卷曲:

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>'