Skip to main content

Supported Data Types

📈 Metrics

Overview

The New Relic source accepts metrics from the New Relic Metric API and the New Relic Agent protocol. Metric API payloads are received on metrics_path, and Agent payloads use agent_base_path with a method query parameter.

Configuration

Send metrics to the collector

Point your app’s New Relic endpoints at the Sawmills collector. You need to configure two environment variables: Both must be set. If you only set one, part of your telemetry bypasses Sawmills. Your <collector-id> is shown in the Sawmills UI under your pipeline’s collector details. For a full Java app walkthrough, see How to send data from a New Relic Java app. Minimal Telemetry SDK example:

Metric API Format

Supported metric types:
  • gauge
  • count (requires interval.ms)
  • summary

Agent Protocol

Supported methods:
  • preconnect
  • connect
  • metric_data
Agent metrics are converted to Summary metrics and include:
  • count
  • sum
  • min and max (as quantiles 0 and 1)
  • sawmills.scope attribute when present
  • sawmills.exclusive_time attribute
  • sawmills.sum_squares attribute

Example Payloads

Metric API

Agent (metric_data)