Skip to content

Conversation

@tracyatrf
Copy link

@tracyatrf tracyatrf commented Jan 27, 2026

Allow users to configure a custom API endpoint for the New Relic sink, enabling use with other non-production endpoints.

Summary

This PR adds a new override_endpoint configuration option to the new_relic sink. When set, this URL takes precedence over the region and api settings for determining where data is sent. This is useful for New Relic developers or users who need to send data to staging environments or other non-production endpoints.

Vector configuration

[sinks.my_newrelic]
type = "new_relic"
inputs = ["my_source"]
license_key = "${NEW_RELIC_LICENSE_KEY}"
account_id = "12345"
api = "metrics"
override_endpoint = "https://alternative-metric-api.newrelic.com/metric/v1"

How did you test this PR?

  • Reviewed existing test coverage which already exercises the override_uri code path
  • Updated the existing test to use the new override_endpoint config field instead of the internal override_uri field

Allow users to configure a custom API endpoint for the New Relic sink,
enabling use with staging environments or other non-production endpoints.
@tracyatrf tracyatrf requested a review from a team as a code owner January 27, 2026 17:04
@github-actions github-actions bot added the domain: sinks Anything related to the Vector's sinks label Jan 27, 2026
@github-actions
Copy link

github-actions bot commented Jan 27, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@tracyatrf
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: sinks Anything related to the Vector's sinks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant