redis-stat 0.3.0-java → 0.3.1-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +12 -0
- data/lib/redis-stat.rb +19 -3
- data/lib/redis-stat/constants.rb +2 -0
- data/lib/redis-stat/server.rb +13 -6
- data/lib/redis-stat/server/public/bootstrap/css/bootstrap-responsive.min.css +2 -2
- data/lib/redis-stat/server/public/bootstrap/css/bootstrap.min.css +2 -2
- data/lib/redis-stat/server/public/bootstrap/js/bootstrap.min.js +1 -1
- data/lib/redis-stat/server/public/css/site.css +2 -3
- data/lib/redis-stat/server/public/forkme.png +0 -0
- data/lib/redis-stat/server/public/js/site.js +134 -116
- data/lib/redis-stat/server/views/index.erb +15 -10
- data/lib/redis-stat/version.rb +1 -1
- data/redis-stat.gemspec +2 -2
- metadata +5 -4
@@ -39,12 +39,12 @@
|
|
39
39
|
</div>
|
40
40
|
<div class="row">
|
41
41
|
<div class="span12">
|
42
|
-
<table id="stat_table" class="table table-striped table-bordered table-condensed">
|
42
|
+
<table id="stat_table" class="table table-striped table-bordered table-condensed <%= @verbose %>">
|
43
43
|
<thead>
|
44
44
|
<tr>
|
45
45
|
<% @measures.each do |m| %>
|
46
46
|
<th>
|
47
|
-
<h5 class="text-info">
|
47
|
+
<h5 class="text-info <%= @verbose %>">
|
48
48
|
<a href="#" rel="tooltip" title="<%= m %>">
|
49
49
|
<%= RedisStat::LABELS[m] %>
|
50
50
|
</a>
|
@@ -54,7 +54,7 @@
|
|
54
54
|
</tr>
|
55
55
|
</thead>
|
56
56
|
<tbody id="info">
|
57
|
-
<%
|
57
|
+
<% RedisStat::Server::STAT_TABLE_ROWS.times do %>
|
58
58
|
<tr><td colspan="<%= @measures.length %>"> </td></tr>
|
59
59
|
<% end %>
|
60
60
|
</tbody>
|
@@ -100,7 +100,8 @@
|
|
100
100
|
</div>
|
101
101
|
|
102
102
|
<a href="https://github.com/junegunn/redis-stat">
|
103
|
-
<img style="position: fixed; top: 0; right: 0; border: 0; z-index: 10000" src="
|
103
|
+
<img style="position: fixed; top: 0; right: 0; border: 0; z-index: 10000" src="/forkme.png" alt="Fork me on GitHub">
|
104
|
+
</a>
|
104
105
|
|
105
106
|
<div class="modal hide fade" id="fail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
106
107
|
<div class="modal-header">
|
@@ -117,23 +118,27 @@
|
|
117
118
|
|
118
119
|
<footer class="footer">
|
119
120
|
<div class="container">
|
120
|
-
<p>Designed and implemented by <a href="https://github.com/junegunn">Junegunn Choi</a>.</p>
|
121
121
|
<p>Powered by <a href="http://twitter.github.com/bootstrap/">Bootstrap</a>, <a href="http://jquery.com/">jQuery</a> and <a href="http://www.jqplot.com/">jqPlot</a>.</p>
|
122
|
-
|
123
122
|
</div>
|
124
123
|
</footer>
|
125
124
|
|
126
125
|
<script>
|
127
126
|
$(function() {
|
128
|
-
initialize(
|
129
|
-
<%= @measures.to_json %>,
|
130
|
-
<%= Hash[@measures.map { |m| [m, RedisStat::COLORS[m].join(' ')] }].to_json
|
127
|
+
initialize({
|
128
|
+
measures: <%= @measures.to_json %>,
|
129
|
+
colors: <%= Hash[@measures.map { |m| [m, RedisStat::COLORS[m].join(' ')] }].to_json %>,
|
130
|
+
history: <%= @history.to_json %>,
|
131
|
+
max: <%= RedisStat::Server::HISTORY_LENGTH %>,
|
132
|
+
fade_dur: <%= @interval < 1 ? 0 : 300 %>,
|
133
|
+
rows: <%= RedisStat::Server::STAT_TABLE_ROWS %>})
|
131
134
|
|
132
135
|
$("#stat_table th a").tooltip()
|
133
136
|
|
134
137
|
var source = new EventSource("/pull")
|
135
138
|
source.onmessage = function(e) {
|
136
|
-
|
139
|
+
appendToHistory(JSON.parse(e.data))
|
140
|
+
updateTable()
|
141
|
+
updatePlot()
|
137
142
|
}
|
138
143
|
source.onerror = function(e) {
|
139
144
|
source.close()
|
data/lib/redis-stat/version.rb
CHANGED
data/redis-stat.gemspec
CHANGED
@@ -4,8 +4,8 @@ require File.expand_path('../lib/redis-stat/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["Junegunn Choi"]
|
6
6
|
gem.email = ["junegunn.c@gmail.com"]
|
7
|
-
gem.description = %q{A Redis monitoring tool written in Ruby}
|
8
|
-
gem.summary = %q{A Redis monitoring tool written in Ruby}
|
7
|
+
gem.description = %q{A real-time Redis monitoring tool written in Ruby}
|
8
|
+
gem.summary = %q{A real-time Redis monitoring tool written in Ruby}
|
9
9
|
gem.homepage = "https://github.com/junegunn/redis-stat"
|
10
10
|
|
11
11
|
gem.platform = 'java' if RUBY_PLATFORM == 'java'
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: redis-stat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.1
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Junegunn Choi
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ansi
|
@@ -125,7 +125,7 @@ dependencies:
|
|
125
125
|
none: false
|
126
126
|
prerelease: false
|
127
127
|
type: :development
|
128
|
-
description: A Redis monitoring tool written in Ruby
|
128
|
+
description: A real-time Redis monitoring tool written in Ruby
|
129
129
|
email:
|
130
130
|
- junegunn.c@gmail.com
|
131
131
|
executables:
|
@@ -151,6 +151,7 @@ files:
|
|
151
151
|
- lib/redis-stat/server/public/css/site.css
|
152
152
|
- lib/redis-stat/server/public/favicon.ico
|
153
153
|
- lib/redis-stat/server/public/favicon.png
|
154
|
+
- lib/redis-stat/server/public/forkme.png
|
154
155
|
- lib/redis-stat/server/public/jqplot/jqplot.canvasAxisLabelRenderer.min.js
|
155
156
|
- lib/redis-stat/server/public/jqplot/jqplot.canvasAxisTickRenderer.min.js
|
156
157
|
- lib/redis-stat/server/public/jqplot/jqplot.canvasTextRenderer.min.js
|
@@ -188,7 +189,7 @@ rubyforge_project:
|
|
188
189
|
rubygems_version: 1.8.24
|
189
190
|
signing_key:
|
190
191
|
specification_version: 3
|
191
|
-
summary: A Redis monitoring tool written in Ruby
|
192
|
+
summary: A real-time Redis monitoring tool written in Ruby
|
192
193
|
test_files:
|
193
194
|
- test/bin_helper.rb
|
194
195
|
- test/test_redis-stat.rb
|