Focussing primarily on ticket #148 for the addition of Prometheus metrics endpoint to the application, additional changes for error control, usability, and functionality have been interspersed.
Included changes
Implemented improved boilerplate metrics integration to offer analysis of current application usage stats
Added process_threads gauge to prometheus metrics alongside isolating thread counts to specific status' as per the Rails thread documentation GH-148
Excluded prometheus metrics from the testing environment to reduce noise in the logs
Added puma-metrics gem to provide base metrics for the Puma web server
Added the internal_error_event metric to the improved error controls
Tweaked the application controller to improve error control and display provided message in themed pages to match the rest of the application
Additional changes
Added puma.stats to footer template in development environment only, again as per the approach in the LR_Common_Styles gem
Reorganised makefile targets alphabetically as well as mirrored other improvements from the other applications in the suite
Updated .rubocop.yml primarily reorganising the rules alphabetically as well as adding CountAsOne to both Metrics/ClassLength and Metrics/MethodLength; includes files with removed earlier disabling of said rules!
Updated .gitignore to include ignoring byebug history as well as sets the tmp directory ignore to be anywhere, not just at the project root
Focussing primarily on ticket #148 for the addition of Prometheus metrics endpoint to the application, additional changes for error control, usability, and functionality have been interspersed.
Included changes
process_threads
gauge to prometheus metrics alongside isolating thread counts to specific status' as per the Rails thread documentation GH-148puma-metrics
gem to provide base metrics for the Puma web serverinternal_error_event
metric to the improved error controlsAdditional changes
puma.stats
to footer template in development environment only, again as per the approach in theLR_Common_Styles
gemCountAsOne
to bothMetrics/ClassLength
andMetrics/MethodLength
; includes files with removed earlier disabling of said rules!.gitignore
to include ignoringbyebug
history as well as sets the tmp directory ignore to be anywhere, not just at the project root