Class: Vitals::Reporters::DnsResolvingStatsdReporter

Inherits:
StatsdReporter show all
Defined in:
lib/vitals/reporters/dns_resolving_statsd_reporter.rb

Instance Attribute Summary

Attributes inherited from StatsdReporter

#format, #statsd

Instance Method Summary collapse

Methods inherited from StatsdReporter

#count, #gauge, #inc, #timing

Methods inherited from BaseReporter

#time

Constructor Details

#initialize(host: 'localhost', port: 8125, format: nil) ⇒ DnsResolvingStatsdReporter

Returns a new instance of DnsResolvingStatsdReporter.



6
7
8
9
10
11
# File 'lib/vitals/reporters/dns_resolving_statsd_reporter.rb', line 6

def initialize(host: 'localhost', port: 8125, format: nil)
  @host = host
  @port = port
  @format = format
  setup_statsd
end