New Relic Metric API

Send metric data from anywhere

If the Telemetry SDK doesn’t support your language or framework, you can use our Metric API to send metric data to New Relic from any source, without needing to install an agent.

curl -vvv -k -H "Content-Type: application/json" -H "Api-Key: ADD_KEY_HERE" -X POST https://metric-api.newrelic.com/metric/v1 --data ‘[{ "metrics":[{
         	"name":"memory.heap",
             "type":"gauge",
             "value":2.3,
             "timestamp":1531414060739,
             "attributes":{"host.name":"dev.server.com"}
           }]
   	}]’