Note: This guide covers the Java APM language agent and the Telemetry SDK. It does not cover the New Relic Infrastructure agent. For Infrastructure setup, see New Relic Infrastructure agent.
Prerequisites
- A running Sawmills Collector with a New Relic source configured
- A New Relic license key
- A Java app instrumented with the New Relic Java agent and/or Telemetry SDK
Environment Variables
Set both variables to route all telemetry through Sawmills. If you only set one, part of your data bypasses Sawmills.
Your
<collector-id> is shown in the Sawmills UI under your pipeline’s collector details.
Configure the Java app
Verify
- Check application logs for connection to your Sawmills collector endpoint.
- Validate metrics in New Relic: