redis-stat 0.4.2-java → 0.4.3-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0c766e709203cbbc8fe84956b58024190103ae0
4
- data.tar.gz: 38c293db9116acf3334ff68e8948a9a46fe5002c
3
+ metadata.gz: 814990cec2629f891bf110dba907ce984628b81e
4
+ data.tar.gz: dbfab2225e10eee3bf6805430854df961bfd8927
5
5
  SHA512:
6
- metadata.gz: 6f00650709f31aa0778396c7a5c9c56e89b66a9c327c8fdd6a5f9fb4fd324cd15c6edbf6186a0755a628dbf35bf17a7a728a9ce76bddad55656a9c8704b66435
7
- data.tar.gz: 5b9a39596bfd0460ca30a410e298e14b5ce78b8122a64d2a8502e148282bf2d02ad3e1efab54e53229d1795563ed2ae7a74cb4647ea78e48eefdfe4d2c5d9f1a
6
+ metadata.gz: a56f0ec2aba3ba341a274875a0e89af1637c203fc096ee2f0d60c1265dfeccc761e06ffb161929ce9194036a974922ffc23048fe9e014f55ce9c7b1a2ee181d1
7
+ data.tar.gz: 706244730e1cfd29a873bb848c0bafd2e9cee44abace52567c49c36870cd723f44e906c1fb15cdab907e203f938e7a409bcafcb1dec5d8c54f1c497f7878f41a
data/README.md CHANGED
@@ -26,7 +26,7 @@ usage: redis-stat [HOST[:PORT] ...] [INTERVAL [COUNT]]
26
26
  --style=STYLE Output style: unicode|ascii
27
27
  --no-color Suppress ANSI color codes
28
28
  --csv=OUTPUT_CSV_FILE_PATH Save the result in CSV format
29
- --es=ELASTICSEARCH_URL Send results to Elasticsearch
29
+ --es=ELASTICSEARCH_URL Send results to ElasticSearch: [http://]HOST[:PORT][/INDEX]
30
30
 
31
31
  --server[=PORT] Launch redis-stat web server (default port: 63790)
32
32
  --daemon Daemonize redis-stat. Must be used with --server option.
@@ -86,6 +86,7 @@ printed as they are not supported in the default Windows command prompt.
86
86
  ## Contributors
87
87
  - [Chris Meisl](https://github.com/cmeisl)
88
88
  - [Hyunseok Hwang](https://github.com/frhwang)
89
+ - [Sent Hil](https://github.com/sent-hil)
89
90
 
90
91
  ## Contributing
91
92
 
@@ -38,7 +38,7 @@ module Option
38
38
  options[:csv] = v
39
39
  end
40
40
 
41
- opts.on('--es=ELASTICSEARCH_URL', 'Send results to Elasticsearch') do |v|
41
+ opts.on('--es=ELASTICSEARCH_URL', 'Send results to ElasticSearch: [http://]HOST[:PORT][/INDEX]') do |v|
42
42
  options[:es] = RedisStat::ElasticsearchSink.parse_url v
43
43
  end
44
44
 
@@ -1,4 +1,4 @@
1
- var history = [],
1
+ var hist = [],
2
2
  max,
3
3
  rows,
4
4
  measures,
@@ -134,9 +134,9 @@ var initialize = function(params) {
134
134
  }
135
135
 
136
136
  var appendToHistory = function(json) {
137
- if (history.length == 0 || json.at > history[ history.length - 1 ].at) {
138
- history.push(json)
139
- if (history.length > max) history.shift()
137
+ if (hist.length == 0 || json.at > hist[ hist.length - 1 ].at) {
138
+ hist.push(json)
139
+ if (hist.length > max) hist.shift()
140
140
  return true
141
141
  } else {
142
142
  return false
@@ -144,7 +144,7 @@ var appendToHistory = function(json) {
144
144
  }
145
145
 
146
146
  var updateTable = function() {
147
- var json = history[ history.length - 1 ],
147
+ var json = hist[ hist.length - 1 ],
148
148
  js = json.static,
149
149
  jd = json.dynamic
150
150
 
@@ -185,30 +185,30 @@ var updatePlot = function() {
185
185
  if (plot3 != undefined) plot3.destroy();
186
186
 
187
187
  // Chart
188
- if (history.length > 0) {
189
- var offset = 1 - Math.min(max, history.length)
188
+ if (hist.length > 0) {
189
+ var offset = 1 - Math.min(max, hist.length)
190
190
 
191
191
  // Commands/sec
192
192
  plot1 = $.jqplot('chart1', [
193
- history.map(function(h, idx) {
193
+ hist.map(function(h, idx) {
194
194
  return [idx + offset, h.dynamic['total_commands_processed_per_second'][1] ] })
195
195
  ], chart_options.chart1);
196
196
  plot1.replot();
197
197
 
198
198
  // CPU usage
199
199
  plot2 = $.jqplot('chart2', [
200
- history.map(function(h, idx) {
200
+ hist.map(function(h, idx) {
201
201
  return [idx + offset, h.dynamic['used_cpu_user'][1] ] }),
202
- history.map(function(h, idx) {
202
+ hist.map(function(h, idx) {
203
203
  return [idx + offset, h.dynamic['used_cpu_sys'][1] ] }),
204
204
  ], chart_options.chart2);
205
205
  plot2.replot();
206
206
 
207
207
  // Memory status
208
208
  plot3 = $.jqplot('chart3', [
209
- history.map(function(h, idx) {
209
+ hist.map(function(h, idx) {
210
210
  return [idx + offset, h.dynamic['used_memory'][1] / 1024 / 1024 ] }),
211
- history.map(function(h, idx) {
211
+ hist.map(function(h, idx) {
212
212
  return [idx + offset, h.dynamic['used_memory_rss'][1] / 1024 / 1024 ] }),
213
213
  ], chart_options.chart3);
214
214
  plot3.replot();
@@ -1,3 +1,3 @@
1
1
  class RedisStat
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-stat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: java
6
6
  authors:
7
7
  - Junegunn Choi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-14 00:00:00.000000000 Z
11
+ date: 2014-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ansi256