Skip to content

Commit

Permalink
Updated host to collector
Browse files Browse the repository at this point in the history
  • Loading branch information
mirackara committed Mar 19, 2024
1 parent da32def commit 3ca0b8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v3/internal/utilization/addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func nonlocalIPAddressesByInterface() (map[string][]string, error) {
// * The UDP connection interface is more likely to contain unique external IPs.
func utilizationIPs() ([]string, error) {
// Port choice designed to match
// https://source.datanerd.us/java-agent/java_agent/blob/master/newrelic-agent/src/main/java/com/newrelic/agent/config/Hostname.java#L110
conn, err := net.Dial("udp", "newrelic.com:10002")
// https://github.com/newrelic/newrelic-java-agent/blob/main/newrelic-agent/src/main/java/com/newrelic/agent/config/Hostname.java#L120
conn, err := net.Dial("udp", "collector.newrelic.com:10002")
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 3ca0b8a

Please sign in to comment.