Class: AppsignalPumaPlugin::Statsd Private

Inherits:
Object
  • Object
show all
Defined in:
lib/puma/plugin/appsignal.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initializeStatsd

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Statsd.



142
143
144
145
146
# File 'lib/puma/plugin/appsignal.rb', line 142

def initialize
  # StatsD server location as configured in AppSignal agent StatsD server.
  @host = "127.0.0.1"
  @port = 8125
end

Instance Method Details

#gauge(metric_name, value, tags) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



148
149
150
# File 'lib/puma/plugin/appsignal.rb', line 148

def gauge(metric_name, value, tags)
  send_metric "g", metric_name, value, tags
end