Skip to main content
This guide routes New Relic Infrastructure agent traffic through Sawmills. Sawmills processes the metric samples and sends them to New Relic in their native format. It proxies identity, command, inventory, and security requests to the correct New Relic service.

Prerequisites

  • Sawmills Collector v1.1097.0 or later
  • A pipeline with a New Relic source and New Relic destination
  • The same New Relic ingest license key in the Infrastructure agent and New Relic destination
  • Network access from the agent pods to the Sawmills HTTPS endpoint
  • newrelic-infrastructure Helm chart 4.0.1 or later
The validated target is nri-bundle chart 7.0.4, which contains newrelic-infrastructure chart and nri-kubernetes image 4.0.1.

1. Enable the Infrastructure source

Edit the New Relic source and turn on Enable Infrastructure agent. Keep the default advanced paths and upstream URLs for the first test. The source configuration contains:
Configure a New Relic destination in the same pipeline. Its License Key must be the exact ingest license key that the Infrastructure agent uses. Deploy the pipeline and collector.

2. Copy the correct collector endpoint

Open the collector details. In New Relic ingestion endpoints, copy the URL with type Infrastructure agent. The URL has this format:
Use the displayed port. Do not add a path to this URL. Do not use the APM agent or SDK URL.

3. Configure nri-bundle

For the nri-bundle chart, add the three base URLs under newrelic-infrastructure.common.agentConfig. This shared configuration applies to the kubelet, KSM, and control-plane agent instances.
Keep the existing global.licenseKey or custom license secret configuration. Do not put the license key in this routing file. Apply the values to the existing release:
Use the chart version that is already approved for your staging environment. Version 7.0.4 is the validated target. For more chart settings, see the New Relic Infrastructure chart values.

Direct agent environment variables

If you do not use nri-bundle, set these variables on every Infrastructure agent container:
All three variables use the same base URL. The agent adds these paths:
  • /infra/v2/metrics/events/bulk
  • /inventory/deltas
  • /identity/v1/connect
  • /agent_commands/v1/commands
Warning: If you set only NRIA_COLLECTOR_URL, identity or command traffic can bypass Sawmills. Set all three variables.

4. Verify the rollout

Wait for all New Relic Infrastructure workloads to become ready. The release can include a kubelet DaemonSet, a control-plane DaemonSet, and a KSM Deployment.
Check one agent log from each workload type. The kubelet pod uses the agent container. The KSM and control-plane pods use the forwarder container.
The successful request flow has these results: The tested agent did not send /security/v1/connect. If your version sends this request, confirm that the collector proxies it without an error.

5. Verify data in New Relic

Run these NRQL queries after at least two reporting cycles:
Also verify:
  • Expected hosts appear in Infrastructure > Hosts.
  • Expected cluster, node, pod, and container entities appear in the Kubernetes view.
  • Event types and important fields match the direct-to-New-Relic baseline.
  • Agent and collector logs do not contain 401, 402, a full queue, or a continuous retry loop.

6. Test a processor change

First verify the route with no data reduction. Then add one processor change at a time.
  1. Apply a sample rule to one high-volume, non-critical event type.
  2. Apply a field rule to one non-identity numeric field.
  3. Deploy the pipeline.
  4. Confirm that the expected hosts and Kubernetes entities remain.
  5. Confirm that only the selected samples or fields changed.
  6. Record the data-volume reduction.
Do not remove entity keys, entity IDs, GUIDs, event types, or timestamps. See Filter processor and Drop Metric Datapoints processor.

Region rules

Keep the Sawmills endpoint in all three agent URL settings. The collector selects the New Relic US or EU service hosts from the license key.
  • A US license uses the US identity, command, inventory, and Infrastructure data hosts.
  • An EU license uses the EU service hosts.
  • The source agent key and destination key must belong to the same account and region.
  • A custom advanced endpoint overrides automatic selection for that service.

Troubleshooting

Roll back

Use helm rollback to restore the release that sent data directly to New Relic:
Then confirm that the three Sawmills URL overrides are not present in the active agent configuration.