Skip to content

Instrument db calls for sidekiq and reqest

Nikola Milojevic requested to merge 216835-instrument-db-calls into master

What does this MR do?

This MR adds the following metrics for lograge and for structured_logger (sidekiq logs):

  • db_count for all SELECTs?
  • db_write_count as they create a sticky connection, all that is not SELECT?
  • db_cached_count: they are still expensive on Rails side to instantiate the objects

I added those metrics in lograge for puma/unicorn and for sidekiq in structured-logger

I also introduced Prometheus metrics:

  • db_count
  • db_write_count
  • db_cached_count

Conformity

Availability and Testing

Closes #216835 (closed) Related to #217103 (closed)

Edited by Nikola Milojevic

Merge request reports