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.



140
141
142
143
144
# File 'lib/puma/plugin/appsignal.rb', line 140

def initialize
  # StatsD server location as configured in AppSignal agent StatsD server.
  @host = "127.0.0.1"
  @port = ENV.fetch("APPSIGNAL_STATSD_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.



146
147
148
# File 'lib/puma/plugin/appsignal.rb', line 146

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