Class: HostedGraphite::StatsD

Inherits:
Statsd
  • Object
show all
Defined in:
lib/hosted_graphite/statsd.rb

Constant Summary collapse

HOST =
'statsd.hostedgraphite.com'.freeze
PORT =
8125.freeze

Instance Method Summary collapse

Constructor Details

#initializeStatsD

Returns a new instance of StatsD.

Raises:



12
13
14
15
16
17
# File 'lib/hosted_graphite/statsd.rb', line 12

def initialize
  raise MissingAPIKey unless HostedGraphite.api_key
  super(HOST, PORT)
  @namespace = HostedGraphite.api_key
  @prefix    = "#{@namespace}."
end