fiveruns-dash-sensor 0.8.2 → 0.8.3

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.rdoc CHANGED
@@ -25,14 +25,14 @@ everything is working as designed. If there are no problems, you can run
25
25
 
26
26
  == Command Summary
27
27
 
28
- 'fiveruns-dash-sensor run' - start the daemon in the foreground, for debugging purposes.
29
- 'fiveruns-dash-sensor start' - start the daemon in the background, output and PID file goes
30
- in the ~/.fiveruns-dash-sensor/log/ directory.
31
- 'fiveruns-dash-sensor stop' - stop the daemon in the background
28
+ 'fiveruns-dash-sensor run' - start the daemon in the foreground, for debugging purposes.
29
+ 'fiveruns-dash-sensor start' - start the daemon in the background, output and PID file goes
30
+ in the ~/.fiveruns-dash-sensor/log/ directory.
31
+ 'fiveruns-dash-sensor stop' - stop the daemon in the background
32
32
 
33
33
  You can run Sensor in verbose mode to get more debug output:
34
34
 
35
- 'fiveruns-dash-sensor run -- -v'
35
+ 'fiveruns-dash-sensor run -- -v'
36
36
 
37
37
  == Creating your own Plugins
38
38
 
@@ -40,32 +40,32 @@ Sensor allows you to create your own custom plugins for your own infrastructure.
40
40
  plugin should reside in ~/.fiveruns-dash-sensor/<name>.rb and config.rb should have an
41
41
  entry in it like this:
42
42
 
43
- sensor.plugin :<name>, any options here...
43
+ sensor.plugin :<name>, any options here...
44
44
 
45
45
  Please see the existing plugins for examples of how your code should work.
46
46
 
47
47
 
48
48
  == License
49
49
 
50
- # (The FiveRuns License)
51
- #
52
- # Copyright (c) 2009 FiveRuns Corporation
53
- #
54
- # Permission is hereby granted, free of charge, to any person obtaining
55
- # a copy of this software and associated documentation files (the
56
- # 'Software'), to deal in the Software without restriction, including
57
- # without limitation the rights to use, copy, modify, merge, publish,
58
- # distribute, sublicense, and/or sell copies of the Software, and to
59
- # permit persons to whom the Software is furnished to do so, subject to
60
- # the following conditions:
61
- #
62
- # The above copyright notice and this permission notice shall be
63
- # included in all copies or substantial portions of the Software.
64
- #
65
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
66
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
67
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
68
- # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
69
- # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
70
- # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
71
- # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
50
+ # (The FiveRuns License)
51
+ #
52
+ # Copyright (c) 2009 FiveRuns Corporation
53
+ #
54
+ # Permission is hereby granted, free of charge, to any person obtaining
55
+ # a copy of this software and associated documentation files (the
56
+ # 'Software'), to deal in the Software without restriction, including
57
+ # without limitation the rights to use, copy, modify, merge, publish,
58
+ # distribute, sublicense, and/or sell copies of the Software, and to
59
+ # permit persons to whom the Software is furnished to do so, subject to
60
+ # the following conditions:
61
+ #
62
+ # The above copyright notice and this permission notice shall be
63
+ # included in all copies or substantial portions of the Software.
64
+ #
65
+ # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
66
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
67
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
68
+ # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
69
+ # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
70
+ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
71
+ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -30,7 +30,7 @@ gem 'daemons'
30
30
  require 'daemons'
31
31
 
32
32
  options = {
33
- :app_name => "dash-sensor",
33
+ :app_name => "fiveruns-dash-sensor",
34
34
  :dir_mode => :normal,
35
35
  :dir => log_dir,
36
36
  :multiple => true,
data/plugins/starling.rb CHANGED
@@ -8,7 +8,7 @@ module Dash::Sensor::Plugins
8
8
  queues.inject(0) { |total, queue_name| total + Integer(stats["queue_#{queue_name}_total_items"]) - Integer(stats["queue_#{queue_name}_items"]) }
9
9
  end
10
10
  recipe.absolute :queue_size, 'Current Size' do
11
- queues = stats.keys.find_all { |name| name =~ /queue_\w+_items/ }
11
+ queues = stats.keys.find_all { |name| name =~ /queue_([^_]+?)_items/ }
12
12
  queues.inject(0) { |total, queue_name| total + Integer(stats[queue_name]) }
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fiveruns-dash-sensor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - FiveRuns