First, replace ACCOUNT_ID
with your New Relic account ID. Then, replace INSIGHTS_KEY
with your New Relic Insights insert API key (requires a paid New Relic APM account).
This BLOCK publishes the data to the New Relic Insights API which allows you to perform queries and observe custom analytics correlated with other New Relic metrics.
Messages logged must be in the format required by New Relic. See below for an example.
Message published over PubNub in New Relic format.
1