1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Dashboard improvements

- Added namespace to dashboard footer.
- Wekkly graph for completed/failed jobs
- Change interpoleration for graphs to prevent the following
http://www.evernote.com/shard/s1/sh/91cdebad-fef5-4895-bd60-b5ee0b277234
/d86e8d48616618459ddd6de8585127dc
This commit is contained in:
Dennis van der Vliet 2013-01-26 18:00:59 +01:00
parent 76915f7128
commit 6fdeb7274b
4 changed files with 8 additions and 0 deletions

View file

@ -49,6 +49,10 @@ module Sidekiq
Sidekiq.redis { |conn| conn.client.location }
end
def namespace
Sidekiq.redis { |conn| conn.namespace.nil? ? 'default' : conn.namespace }
end
def root_path
"#{env['SCRIPT_NAME']}/"
end

View file

@ -69,6 +69,7 @@ var historyGraph = function() {
width: 800,
height: 200,
renderer: 'line',
interpolation: 'linear',
series: [
{
color: "#B1003E",

View file

@ -11,6 +11,7 @@ h5 Real-time
h5
span.history-heading History
a href="#{{current_path}}?days=7" class="history-graph #{{"active" if params[:days] == "7"}}" 1 week
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

View file

@ -24,6 +24,8 @@ html
p.navbar-text Redis: #{location}
li
p.navbar-text Time: #{Time.now.utc.strftime('%H:%M:%S UTC')}
li
p.navbar-text Namespace: #{namespace}
#page
.container