Featured image of post Data Export From New Relic

Data Export From New Relic

Discover the key to harnessing New Relic data through effective exporting methods

New Relic support two approaches for data exporting:

  • Streaming data export
  • Historical data export

Streaming Export

Stream data out of New Relic (as it is being ingested)

A streaming data export sends out data exclusively at ingestion by New Relic, so any data from the past 12 hours since ingestion

Supports sending data to AWS Kinesis Firehose or Azure Event Hub

Limits

  • The amount of data you can stream per month is limited by your total ingested data per month.

Requirements

Permissions:

Configured Azure Event Hub or AWS Kinesis Firehose to receive New Relic data.

NRQL:

  • No aggregation
  • Query cannot have a FACET clause, COMPARE WITH, or LOOKUP
  • Nested queries are not supported.
  • Metrics are not supported.

Time Range:

  • Past 12 hrs

How to create a streaming export rule

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
mutation {
  streamingExportCreateRule(
    accountId: YOUR_NR_ACCOUNT_ID
    ruleParameters: {
      description: "ADD_RULE_DESCRIPTION"
      name: "PROVIDE_RULE_NAME"
      nrql: "SELECT * FROM NodeStatus"
    }
    azureParameters: {
      eventHubConnectionString: "YOUR_EVENT_HUB_SAS_CONNECTION_STRING"
      eventHubName: "YOUR_EVENT_HUB_NAME"
    }
  ) {
    id
    status
  }
}

Historical data export

historical data export feature can be used to run a NRQL query that returns 200,000,000 data points in a response (instead of the usual limit of 2000) and has no query timeout. The results are returned as one or more JSON files.

The results files contain approximately 100MB or less of GZIP compressed JSON

Requirements

  • Data Plus
  • core user or full platform user

Limits

Usage:

  • Return < 200M events
  • Inspect < 5 B events
  • Max 2 concurrent exports per account

Data:

  • Matric timeslice data - not available
  • Dimensional metrics - not availble
  • Infra events (*Sample) - not available

Time Range:

  • must end at least 12 hours in the past

How to Create Historical Export

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
mutation {
  historicalDataExportCreateExport(
    accountId: YOUR_ACCOUNT_ID
    nrql: "FROM Transaction SELECT duration, appId WHERE appName = 'interesting-application' SINCE '2023-09-11 11:05:00-0600' UNTIL '2022-09-11 11:10:00-0600'"
  ) {
    percentComplete
    nrql
    status
    id
    message
  }
}

Links

Built with Hugo
Theme Stack designed by Jimmy