Skip to main content

Supported Data Types

📈 Metrics

Overview

The New Relic destination selects the native New Relic endpoint from the source data format. Infrastructure samples do not go to the Metric API. Sawmills rebuilds their native event and entity grouping after processors run and sends them to the Infrastructure metrics API.

Configuration

The APM and Infrastructure endpoints use service defaults. The Infrastructure endpoint is https://infra-api.newrelic.com/infra/v2/metrics/events/bulk for US keys and https://infra-api.eu.newrelic.com/infra/v2/metrics/events/bulk for EU keys.

Infrastructure account requirement

The destination license key must be the exact ingest license key used by the Infrastructure agent. The collector compares a one-way fingerprint of the source key with the destination key before it sends data. This check prevents an identity request for one account from being combined with metric data for another account. A mismatch stops Infrastructure export before a network request.
Warning: Use an ingest license key. Do not use the User API key from the New Relic account integration.

Metric mapping

  • Gauge metrics map to gauge.
  • Sum metrics map to count, with interval.ms from the start and end timestamps.
  • Summary metrics map to summary, with count, sum, minimum, and maximum.
  • Histogram metrics map to summary, with count, sum, minimum, and maximum.
Exponential histograms are not supported.

APM time-slice metrics

Summary metrics go to the APM agent listener when they have the New Relic time-slice marker or agent attributes.

Infrastructure samples

The New Relic source converts Infrastructure samples to OpenTelemetry metrics. Processors can reduce the data between the source and destination. The destination then:
  1. Groups fields by the saved sample and entity identity.
  2. Rebuilds the native MetricPost batches.
  3. Restores original field names and value types.
  4. Sends the batches to the regional Infrastructure metrics API.
  5. Forwards the required New Relic entity headers.
The raw source license key is not stored in OpenTelemetry attributes.