Rails Metrics
7,749

Created 6/6/2019
Updated 2/16/2024
Revision 3
Grafana Version >=10.2.3

A generic dashboard for metrics collected by the prometheus_exporter gem. Metrics for Puma/Ruby on Rails (Request Duration, Request Count, ...), Delayed Jobs (Job Duration, Job Count, ...) and memory usage are displayed.

Providing the following variables, this dashboard can be used for multiple applications:

  • datesource: The Prometheus instances to fetch the data from.
  • kubernetes_namespace: The namespace of the application to inspect.
  • controller: Name of the controller
  • action: Name of the action, specific to the selected controller.
  • job: Name of the ActiveJob
Get Dashboard
Download
Copy to Clipboard
Source Grafana.com

Used Metrics 20

  • ruby_rss

  • ruby_http_requests_total

  • ruby_delayed_job_duration_seconds_summary_count

  • ruby_http_request_duration_seconds_sum

  • ruby_http_request_duration_seconds_count

  • quantile

  • ruby_http_request_sql_duration_seconds_sum

  • ruby_http_request_sql_duration_seconds_count

  • ruby_puma_thread_pool_capacity

  • ruby_puma_request_backlog

  • topk

  • ruby_delayed_job_duration_seconds

  • ruby_delayed_jobs_total

  • ruby_delayed_job_duration_seconds_summary_sum

  • ruby_delayed_jobs_enqueued

  • ruby_delayed_jobs_pending

  • ruby_allocated_objects_total

  • min

  • ruby_heap_free_slots

  • ruby_heap_live_slots