Hi,
Following the documentation you referred to - I was able to obtain an Insights Insert key.
Looks like these are handled @ https://insights.newrelic.com/ as they have not yet been added to the new dashboard layout.
Vodia still doesn't pattern match the key.
The issue I'm running into is that when Vodia attempts to post the data, I'm receiving a 403 forbidden response.
From the Vodia log:
POST /platform/v1/metrics HTTP/1.1
Host: platform-api.newrelic.com
X-License-Key: ****************
Content-Type: application/json
nAccept: application/json
Content-Length: 546
{"agent":{"host":"*****","pid":"pbxctrl","version":"67.0.6"},"components":[{"name":"*****","guid":"com.vodia.pbx","duration":***,"metrics":{"Component/Traffic/SIP[packets/sec]":*******,"Component/Traffic/HTTP[packets/sec]":*****,"Component/Load/Media[usage]":[***,***,*,**,****],"Component/PBX/CDR[units]":*****,"Component/PBX/Emails[units]":***,"Component/PBX/Uptime[sec]":*******,"Component/PBX/Minutes[units]":*****,"Component/PBX/Registrations[units]":***,"Component/PBX/Subscriptions[units]":****,"Component/PBX/Calls[units]":**}}]}
HTTP/1.1 403 Forbidden
Content-Length: 32
Date: Mon, 26 Jul 2021 00:19:17 GMT
Content-Type: text/plain; charset=utf-8
{"error": "Invalid license key"}
Looking at the Newrelic documentation - is the endpoint that vodia is using correct?
Newrelic docs show the endpoint as:
https://metric-api.newrelic.com/metric/v1
The docs also refer to the header value of "Api-Key" not "X-License-Key"
Api-Key
Yes
Required. The Insert API key authenticates you to use the Metric API. If this is provided as both a header and a query parameter, the values must match.