riemann-babbler 0.4.8 → 0.4.9

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.
@@ -13,9 +13,11 @@ class Riemann::Babbler::Cpu < Riemann::Babbler
13
13
  end
14
14
 
15
15
  @old_cpu = [u2, n2, s2, i2]
16
+
17
+ desc = "usage\n\n#{shell('ps -eo pcpu,pid,cmd | sort -nrb -k1 | head -10').chomp}"
16
18
 
17
- if @old_cpu
18
- { :service => plugin.service, :metric => fraction }
19
+ if fraction
20
+ { :service => plugin.service, :metric => fraction, :description => desc }
19
21
  else
20
22
  { :service => plugin.service, :state => 'ok' }
21
23
  end
@@ -10,7 +10,7 @@ class Riemann::Babbler::Memory < Riemann::Babbler
10
10
  total = m['MemTotal'].to_i
11
11
  fraction = 1 - (free.to_f / total)
12
12
 
13
- desc = "usage\n\n#{shell('ps -eo pmem,pid,comm | sort -nrb -k1 | head -10').chomp}"
13
+ desc = "usage\n\n#{shell('ps -eo pmem,pid,cmd | sort -nrb -k1 | head -10').chomp}"
14
14
 
15
15
  [
16
16
  { :service => plugin.service, :metric => fraction },
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  class Babbler
3
- VERSION = '0.4.8'
3
+ VERSION = '0.4.9'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-babbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -147,7 +147,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  segments:
149
149
  - 0
150
- hash: -1568010761180568975
150
+ hash: -2705264439441515163
151
151
  required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  none: false
153
153
  requirements: