Class: HostedGraphite::StatsD
- Inherits:
-
Statsd
- Object
- Statsd
- HostedGraphite::StatsD
- Defined in:
- lib/hosted_graphite/statsd.rb
Constant Summary collapse
- HOST =
'statsd.hostedgraphite.com'.freeze
- PORT =
8125.freeze
Instance Method Summary collapse
-
#initialize ⇒ StatsD
constructor
A new instance of StatsD.
Constructor Details
#initialize ⇒ StatsD
Returns a new instance of StatsD.
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 |