Skip to content

Primarily Prometheus Metrics#235

Merged
jonrandahl merged 21 commits intodevfrom
spike/prometheus-metrics-update
Sep 3, 2024
Merged

Primarily Prometheus Metrics#235
jonrandahl merged 21 commits intodevfrom
spike/prometheus-metrics-update

Conversation

@jonrandahl
Copy link
Contributor

@jonrandahl jonrandahl commented Aug 28, 2024

Focussing primarily on ticket #148 for the addition of Prometheus metrics endpoint to the PPD Explorer, additional changes for accessibility, useability, and functionality have been interspersed.

  • Implemented improved boilerplate metrics integration to offer analysis of current application usage stats
  • Additional metrics from the Puma server to be exposed in the /metrics endpoint via the puma-metrics gem
  • Tweaked the application controller to improve error handling and ensuring additional filtering for specific errors completes when able
  • Reorganised makefile targets alphabetically as well as mirrored other improvements from the other applications in the suite
  • Updated .gitignore file to mirror the current approach in the other HMLR apps
  • Updated .rubocop.yml file with rules to reduce the need to set overrides inline

Added `CountAsOne: ['array', 'hash', 'heredoc', 'method_call']` to Metrics/ClassLength and Metrics/MethodLength
now alphabetically sorted
as per other integrations for metrics
- `:thread_count`: The number of threads currently alive
- `:process_threads`: The number of currently running threads
mirrors the current approach in the other HMLR apps
Reorganised makefile targets alphabetically as well as mirrored other improvements from the other applications in the suite
Additional metrics from the Puma server to be exposed in the /metrics endpoint via the `puma-metrics` gem
alongside adding labels to be able to fine-tune the metrics
also improved doc comments
`rescue_from` handlers are inherited. They are searched from right to left, from bottom to top, and up the hierarchy, which meant the exception handler was the only handler firing as well as preventing the additional filtering for specific errors.
@jonrandahl jonrandahl marked this pull request as ready for review August 28, 2024 15:07
@jonrandahl jonrandahl self-assigned this Aug 28, 2024
Copy link
Contributor

@DanielCouzens DanielCouzens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@bogdanadrianmarc bogdanadrianmarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@jonrandahl jonrandahl merged commit 4efe25f into dev Sep 3, 2024
@jonrandahl jonrandahl deleted the spike/prometheus-metrics-update branch September 3, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants