Class: AppsignalPumaPlugin::Statsd Private
- 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
- #gauge(metric_name, value, tags) ⇒ Object private
-
#initialize ⇒ Statsd
constructor
private
A new instance of Statsd.
Constructor Details
#initialize ⇒ Statsd
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, ) send_metric "g", metric_name, value, end |