1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/web/views/dashboard.slim
2012-12-10 22:01:49 -05:00

36 lines
No EOL
1,004 B
Text

script type="text/javascript" src="#{{root_path}}javascripts/dashboard.js"
h3 Dashboard
h5 Real-time Jobs
#realtime
h5
span.history-heading History
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"
br
h5 Redis
.stat
h3= @redis_info.fetch("redis_version")
p Version
.stat
h3= @redis_info.fetch("uptime_in_days")
p Uptime (days)
.stat
h3= @redis_info.fetch("connected_clients")
p Connections
.stat
h3= @redis_info.fetch("used_memory_human")
p Memory Usage
.stat
h3= @redis_info.fetch("used_memory_peak_human")
p Peak Memory Usage