class PumaCloudwatch::Metrics
It probably makes sense to configure PUMA_CLOUDWATCH_DIMENSION_VALUE to include your application name. For example if you're application is named “myapp”, this would be a good value to use:
PUMA_CLOUDWATCH_DIMENSION_VALUE=myapp-puma
Then you can get all the metrics for the pool_capacity for your myapp-puma app.
Summing the metric tells you the total available pool_capacity for the myapp-puma app.
Public Class Methods
new(launcher)
click to toggle source
# File lib/puma_cloudwatch/metrics.rb, line 12 def initialize(launcher) @launcher = launcher end
start_sending(launcher)
click to toggle source
# File lib/puma_cloudwatch/metrics.rb, line 8 def self.start_sending(launcher) new(launcher).start_sending end
Public Instance Methods
start_sending()
click to toggle source
# File lib/puma_cloudwatch/metrics.rb, line 16 def start_sending Looper.run(@launcher.options) end