riemann-babbler 0.9.9.7 → 0.9.9.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.
@@ -3,7 +3,7 @@
3
3
  class Riemann::Babbler::Cpu < Riemann::Babbler
4
4
 
5
5
  def desc
6
- "#{shell('ps -eo pcpu,pid,cmd --sort -pcpu | head -10').chomp}"
6
+ "#{shell('ps -eo pcpu,pid,cmd --sort -pcpu | head -3').chomp}"
7
7
  end
8
8
 
9
9
  def init
@@ -18,7 +18,7 @@ class Riemann::Babbler::Memory < Riemann::Babbler
18
18
  fraction = 1 - (free_bc.to_f / total)
19
19
  swap_fraction = m['SwapTotal'] == 0 ? 0 : 1 - m['SwapFree'].to_f/m['SwapTotal']
20
20
 
21
- desc = "#{shell('ps -eo pmem,pid,cmd --sort -pmem | head -10').chomp}"
21
+ desc = "#{shell('ps -eo pmem,pid,cmd --sort -pmem | head -3').chomp}"
22
22
  [
23
23
  { :service => plugin.service + ' % free', :description => 'Memory usage, %', :metric => fraction.round(2) * 100 },
24
24
  { :service => plugin.service + ' % swap', :description => 'Swap usage, %', :metric => swap_fraction.round(2) * 100 },
@@ -3,7 +3,7 @@ class Riemann::Babbler::Runit < Riemann::Babbler
3
3
  def init
4
4
  plugin.set_default(:service, 'runit')
5
5
  plugin.set_default(:not_monit, [])
6
- plugin.set_default(:interval, 10)
6
+ plugin.set_default(:interval, 60)
7
7
  end
8
8
 
9
9
  def run_plugin
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  class Babbler
3
- VERSION = '0.9.9.7'
3
+ VERSION = '0.9.9.8'
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.9.9.7
4
+ version: 0.9.9.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-05-27 00:00:00.000000000 Z
12
+ date: 2013-05-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: riemann-client