Real time streaming

With real time streaming, your APM event data is sent to New Relic every five seconds. You can query and visualize your data for transactions, errors, and custom events in New Relic One and Insights dashboards in near real time. The smaller payloads result in faster chart refreshes and faster queries of data that is the most important to you.

No configuration is needed to take advantage of real time streaming. All you need to do is ensure your APM agent version is up to date.

Why it matters

Real time streaming does not result in more events being sent, nor an increase in Insights charges. The combination of more frequent posts, with a smaller number of events per post, results in approximately the same number of events per minute as they were without real time streaming.

RTS.PNG
Example of APM event data sent to New Relic with or without real time streaming.

The overall limits on how many events can be sent per minute have not changed. Also, span events, trace data, and metrics are unaffected; they will still be sent every minute.

Use real time streaming to quickly understand the impact when something has changed, such as deploying a new app version.

  • Examine key performance indicators (throughput, error rates, charting, etc.) in near real time.
  • Respond quickly to failure conditions and anomalies.
  • Get the most out of Dashboards in New Relic One.
  • Reduce mean time to detection with APM events reporting every five seconds.

Agent version to automatically enable

To enable real time streaming, update to the latest New Relic APM agent. You do not need to configure anything to enable real time streaming; it will automatically report faster!

Real time streaming is supported by all APM agents. Here are the minimum versions:

Query real time streaming data

When building New Relic One or Insights charts, include the following in your NRQL query:

NRQL clause Comments
SINCE 5 minutes ago

Be sure to add a SINCE 5 minutes ago clause to your NRQL query in order to take advantage of the 5 second chart refresh interval. This is because the chart's refresh interval is based on the time window.

TIMESERIES bucket

To set the refresh interval for time series charts, you can also specify the bucket size as an optional argument to the TIMESERIES clause. For example, SINCE 30 minutes ago TIMESERIES 5 seconds will display a 30 minute window at a 5 second resolution. You can have a maximum of 366 buckets.

Create real time streaming charts

You can visualize the results of your NRQL query with New Relic One or Insights.

New Relic One

  1. Go to one.newrelic.com, and at the top of the page, select Chart anything.
  2. Use the chart builder to start building a chart.
  3. Select the advanced (NRQL) mode. (If you start with basic mode, switch to advanced mode to complete the next step.)
  4. In your NRQL query, adjust the SINCE and TIMESERIES clauses to take advantage of 5 second refresh intervals.

Insights

New Relic One offers the best experience for real time streaming charts.

  1. Go to insights.newrelic.com.
  2. Follow standard NRQL procedures to create a chart.
  3. In your NRQL query, adjust the SINCE and TIMESERIES clauses to take advantage of 5 second refresh intervals.

If Transaction event reporting is disabled, this can affect some UI elements throughout New Relic. You may see some empty charts on some UI pages that rely on this data.

For more help

Recommendations for learning more: