I’m having issues finding out exactly why my Metric API requests don’t seem to go through.
Here’s my curl
command:
curl -vvv -k -H "Content-Type: application/json" \
-H "Api-Key: NEW_RELIC_LICENSE_KEY" \
-X POST https://metric-api.eu.newrelic.com/metric/v1 \
--data '[{"metrics":[{"name":"test1.test2.test3","type":"gauge","value":0,"timestamp":1654177041}]}]'
Which returns 202
with a valid requestId
, but the metric data won’t show up in the explorer. I’m wondering if I could use the returned id to find out what exactly went wrong with the request. The payload seems to be fine, as in all the required fields are there and are valid. I have no recent NrIntegrationError
s either.
The same request seems to work just fine when using the SDK - newrelic.recordMetric("test1.test2.test3", 0)