puma-cloudwatch
puma-cloudwatch copied to clipboard
Add `busy_threads` statistic
This pull request introduces the busy_threads metric to the Puma Cloudwatch integration, updates the metric parsing and sending logic, and adjusts the corresponding tests to accommodate the new metric.
Metrics Addition:
- Added
busy_threadsto the list of metrics inlib/puma_cloudwatch/metrics/parser.rb. - Updated the example structure in the
callmethod documentation to includebusy_threadsinlib/puma_cloudwatch/metrics/parser.rbandlib/puma_cloudwatch/metrics/sender.rb. [1] [2]
Documentation Update:
- Added a description for the
busy_threadsmetric in theREADME.mdfile.
Test Adjustments:
- Modified
spec/puma_cloudwatch/metrics/fetcher_spec.rbto use a mock socket and updated the test description. - Updated
spec/puma_cloudwatch/metrics/parser_spec.rbto includebusy_threadsin the test data and expectations. [1] [2] [3] [4] [5] - Adjusted
spec/puma_cloudwatch/metrics/sender_spec.rbto validate the inclusion ofbusy_threadsin the metric data and its storage resolution. [1] [2] [3] [4]