Method: NewRelic::Agent::Configuration::DefaultSource.host

Defined in:
lib/new_relic/agent/configuration/default_source.rb

.hostObject

[View source]

205
206
207
208
209
210
211
212
213
214
# File 'lib/new_relic/agent/configuration/default_source.rb', line 205

def self.host
  proc do
    regex = /\A(?<identifier>.+?)x/
    if matches = regex.match(String(NewRelic::Agent.config[:license_key]))
      "collector.#{matches['identifier']}.nr-data.net"
    else
      'collector.newrelic.com'
    end
  end
end