~/talk

Building a Performance Analytics Tool with ActiveSupport

Talkat RailsConf 2020 CE · 2020-05-04..05-05· [ruby-on-rails, web-performance]
slides:none on file

Builds a tiny production-ready performance analytics pipeline called active monitoring that actually records response times and each SQL query using ActiveSupport instrumentation, writes metrics to InfluxDB time-series storage and graphs them on a dashboard (Grafana). Uses ~50 Rails hooks, implements a Rails plugin, a current_attributes request cache to join SQL events to requests, normalizes SQL with regexes before grouping, and relies on LSM-tree retention/downsampling. Notes measurable overhead from normalization and suggests moving it to C or async jobs if latency becomes significant.

AI-written summary · about

  1. 0:00Introduction
  2. 0:40Overview
  3. 2:56ActiveSupport
  4. 5:38Metrics
  5. 12:18Processing
  6. 16:02Visualization
  7. 19:45Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.