Class: SidekiqInsight::GraphsController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- SidekiqInsight::GraphsController
- Defined in:
- app/controllers/sidekiq_insight/graphs_controller.rb
Instance Method Summary collapse
Instance Method Details
#cpu ⇒ Object
3 4 5 6 |
# File 'app/controllers/sidekiq_insight/graphs_controller.rb', line 3 def cpu @jobs = SidekiqInsight.storage.top_jobs(50) @cpu_chart = build_series(:cpu_ms) end |
#leaks ⇒ Object
18 19 20 21 22 23 24 |
# File 'app/controllers/sidekiq_insight/graphs_controller.rb', line 18 def leaks @jobs = SidekiqInsight.storage.top_jobs(50) @leak_jobs = @jobs.select do |j| samples = SidekiqInsight.storage.recent(j[:key], 200) SidekiqInsight::Metrics.detect_leak(samples) end end |
#rss ⇒ Object
8 9 10 11 |
# File 'app/controllers/sidekiq_insight/graphs_controller.rb', line 8 def rss @jobs = SidekiqInsight.storage.top_jobs(50) @rss_chart = build_series(:rss_kb) end |
#wall ⇒ Object
13 14 15 16 |
# File 'app/controllers/sidekiq_insight/graphs_controller.rb', line 13 def wall @jobs = SidekiqInsight.storage.top_jobs(50) @wall_chart = build_series(:wall_ms) end |