Class: PumaCloudwatch::Metrics
- Inherits:
-
Object
- Object
- PumaCloudwatch::Metrics
- Defined in:
- lib/puma_cloudwatch/metrics/sender.rb,
lib/puma_cloudwatch/metrics.rb,
lib/puma_cloudwatch/metrics/looper.rb,
lib/puma_cloudwatch/metrics/parser.rb,
lib/puma_cloudwatch/metrics/fetcher.rb
Overview
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.
Defined Under Namespace
Classes: Fetcher, Looper, Parser, Sender
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(launcher) ⇒ Metrics
constructor
A new instance of Metrics.
- #start_sending ⇒ Object
Constructor Details
#initialize(launcher) ⇒ Metrics
Returns a new instance of Metrics.
12 13 14 |
# File 'lib/puma_cloudwatch/metrics.rb', line 12 def initialize(launcher) @launcher = launcher end |
Class Method Details
.start_sending(launcher) ⇒ Object
8 9 10 |
# File 'lib/puma_cloudwatch/metrics.rb', line 8 def self.start_sending(launcher) new(launcher).start_sending end |