Sha256: 0b1af8994308c8fa60dc156903bc5d965a2cf82d680dbc17fb0c565a138dfd30

Contents?: true

Size: 522 Bytes

Versions: 18

Compression:

Stored size: 522 Bytes

Contents

always_start true
interval 60

default[:cpu] = 1
default[:cpu] = ohai[:cpu][:total] unless ohai[:cpu][:total].to_i == 0

collect :os => "linux" do
  event(
    :metric       => File.read('/proc/loadavg').scan(/[\d\.]+/)[0].to_f,
    :desc         => 'LA averaged over 1 minute',
    :service      => 'la la_1',
    :warning      => plugin.warning || plugin.cpu * 2,
    :critical     => plugin.critical || plugin.cpu * 4,
    :opentsdb_service => "sys.la.one_min",
    :opentsdb_tags    => {"host" => ohai[:fqdn]}
  )
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
kurchatov-0.4.7 examples/la.rb
kurchatov-0.4.6 examples/la.rb
kurchatov-0.4.5 examples/la.rb
kurchatov-0.4.4 examples/la.rb
kurchatov-0.4.3 examples/la.rb
kurchatov-0.4.2 examples/la.rb
kurchatov-0.4.1 examples/la.rb
kurchatov-0.3.8 examples/la.rb
kurchatov-0.3.7 examples/la.rb
kurchatov-0.3.6 examples/la.rb
kurchatov-0.3.5 examples/la.rb
kurchatov-0.3.4 examples/la.rb
kurchatov-0.3.3 examples/la.rb
kurchatov-0.3.2 examples/la.rb
kurchatov-0.3.1 examples/la.rb
kurchatov-0.3.0 examples/la.rb
kurchatov-0.2.9 examples/la.rb
kurchatov-0.2.8 examples/la.rb