riemann-tools 0.1.7 → 0.1.8

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.
Binary file
@@ -23,7 +23,7 @@ class Riemann::Tools::Memcached
23
23
  break if stats.strip == 'END'
24
24
  m = stats.match /STAT (\w+) (\S+)/
25
25
  report(
26
- :host => opts[:memcached_host],
26
+ :host => opts[:memcached_host].dup,
27
27
  :service => "memcached #{m[1]}",
28
28
  :metric => m[2].to_f,
29
29
  :state => 'ok',
data/bin/riemann-net CHANGED
@@ -12,6 +12,8 @@ class Riemann::Tools::Net
12
12
 
13
13
  def initialize
14
14
  @old_state = nil
15
+ @interfaces = opts[:interfaces].map(&:dup) if opts[:interfaces]
16
+ @ignore_interfaces = opts[:ignore_interfaces].map(&:dup)
15
17
  end
16
18
 
17
19
  def state
@@ -48,14 +50,14 @@ class Riemann::Tools::Net
48
50
  end
49
51
 
50
52
  # Filter interfaces
51
- if is = opts[:interfaces]
53
+ if is = @interfaces
52
54
  state = state.select do |service, value|
53
55
  is.include? service.split(' ').first
54
56
  end
55
57
  end
56
58
 
57
59
  state = state.reject do |service, value|
58
- opts[:ignore_interfaces].include? service.split(' ').first
60
+ @ignore_interfaces.include? service.split(' ').first
59
61
  end
60
62
 
61
63
  state
data/bin/riemann-redis CHANGED
@@ -52,6 +52,10 @@ class Riemann::Tools::Redis
52
52
  end
53
53
  end
54
54
 
55
+ if property == "run_id"
56
+ data[:metric] = 0
57
+ end
58
+
55
59
  report(data)
56
60
  end
57
61
  rescue ::Redis::CommandError => e
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-18 00:00:00.000000000 Z
12
+ date: 2013-11-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: riemann-client
@@ -139,63 +139,66 @@ dependencies:
139
139
  - - ! '>='
140
140
  - !ruby/object:Gem::Version
141
141
  version: 1.5.6
142
- description:
142
+ description: Utilities which submit events to Riemann.
143
143
  email: aphyr@aphyr.com
144
144
  executables:
145
- - riemann-aws-status
146
- - riemann-munin
147
- - riemann-resmon
148
- - riemann-redis-slowlog
145
+ - .riemann-health.swp
146
+ - riemann-riak-ring
147
+ - riemann-riak-keys
148
+ - riemann-memcached
149
+ - riemann-elb-metrics
150
+ - riemann-net
149
151
  - riemann-bench
150
152
  - riemann-proc
151
- - riemann-freeswitch
152
- - riemann-elb-metrics
153
- - riemann-riak
154
- - riemann-health
155
- - riemann-memcached
156
- - riemann-haproxy
157
- - riemann-elasticsearch
158
- - riemann-riak-keys
159
- - riemann-diskstats
160
153
  - riemann-fd
161
- - riemann-riak-ring
162
154
  - riemann-cloudant
163
- - riemann-nginx-status
164
- - riemann-rabbitmq
155
+ - riemann-resmon
156
+ - riemann-elasticsearch
165
157
  - riemann-kvminstance
166
- - riemann-net
158
+ - riemann-rabbitmq
159
+ - riemann-munin
160
+ - riemann-riak
161
+ - riemann-redis-slowlog
162
+ - riemann-haproxy
163
+ - riemann-freeswitch
164
+ - riemann-aws-status
165
+ - riemann-nginx-status
167
166
  - riemann-redis
167
+ - riemann-diskstats
168
+ - riemann-health
168
169
  extensions: []
169
170
  extra_rdoc_files: []
170
171
  files:
171
172
  - lib/riemann/tools.rb
172
- - bin/riemann-aws-status
173
+ - bin/riemann-riak-ring
174
+ - bin/riemann-riak-keys
175
+ - bin/riemann-memcached
176
+ - bin/riemann-elb-metrics
177
+ - bin/riemann-net
173
178
  - bin/riemann-bench
179
+ - bin/riemann-proc
180
+ - bin/riemann-fd
174
181
  - bin/riemann-cloudant
175
- - bin/riemann-diskstats
182
+ - bin/riemann-resmon
176
183
  - bin/riemann-elasticsearch
177
- - bin/riemann-elb-metrics
178
- - bin/riemann-fd
179
- - bin/riemann-freeswitch
180
- - bin/riemann-haproxy
181
- - bin/riemann-health
182
184
  - bin/riemann-kvminstance
183
- - bin/riemann-memcached
185
+ - bin/riemann-rabbitmq
184
186
  - bin/riemann-munin
185
- - bin/riemann-net
187
+ - bin/riemann-riak
188
+ - bin/riemann-redis-slowlog
189
+ - bin/riemann-haproxy
190
+ - bin/riemann-freeswitch
191
+ - bin/riemann-aws-status
186
192
  - bin/riemann-nginx-status
187
- - bin/riemann-proc
188
- - bin/riemann-rabbitmq
189
193
  - bin/riemann-redis
190
- - bin/riemann-redis-slowlog
191
- - bin/riemann-resmon
192
- - bin/riemann-riak
193
- - bin/riemann-riak-keys
194
- - bin/riemann-riak-ring
194
+ - bin/riemann-diskstats
195
+ - bin/riemann-health
195
196
  - LICENSE
196
197
  - README.markdown
198
+ - bin/.riemann-health.swp
197
199
  homepage: https://github.com/aphyr/riemann-tools
198
- licenses: []
200
+ licenses:
201
+ - MIT
199
202
  post_install_message:
200
203
  rdoc_options: []
201
204
  require_paths:
@@ -214,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
217
  version: '0'
215
218
  requirements: []
216
219
  rubyforge_project: riemann-tools
217
- rubygems_version: 1.8.25
220
+ rubygems_version: 1.8.23
218
221
  signing_key:
219
222
  specification_version: 3
220
223
  summary: Utilities which submit events to Riemann.