mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
* Poll dashboard stats every 2 sec
* Rename dashboard update action to "stats"
This commit is contained in:
parent
52ad426ba1
commit
70b6303d9d
3 changed files with 3 additions and 3 deletions
|
@ -211,7 +211,7 @@ module Sidekiq
|
|||
slim :dashboard
|
||||
end
|
||||
|
||||
get '/dashboard/update' do
|
||||
get '/dashboard/stats' do
|
||||
stats = Sidekiq::Stats.new
|
||||
content_type :json
|
||||
Sidekiq.dump_json({ processed: stats.processed, failed: stats.failed })
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -10,7 +10,7 @@ h5
|
|||
a href="#{{current_path}}" class="history-graph #{{"active" if params[:days].nil? || params[:days] == "30"}}" 1 month
|
||||
a href="#{{current_path}}?days=90" class="history-graph #{{"active" if params[:days] == "90"}}" 3 month
|
||||
a href="#{{current_path}}?days=180" class="history-graph #{{"active" if params[:days] == "180"}}" 6 month
|
||||
#history data-processed="#{Sidekiq.dump_json(@processed_history)}" data-failed="#{Sidekiq.dump_json(@failed_history)}" data-update-url="#{{current_path}}/update"
|
||||
#history data-processed="#{Sidekiq.dump_json(@processed_history)}" data-failed="#{Sidekiq.dump_json(@failed_history)}" data-update-url="#{{current_path}}/stats"
|
||||
|
||||
br
|
||||
h5 Redis
|
||||
|
|
Loading…
Add table
Reference in a new issue