Sha256: 5c3a254346be3796839aac64a8a5fa432dd6b8c684fcc0923ab6172bed27d832

Contents?: true

Size: 696 Bytes

Versions: 18

Compression:

Stored size: 696 Bytes

Contents

project "Riak" do
  server "localhost"

  riak_stats = %w[
    riak_kv_vnodes_running
    vnode_gets
    vnode_puts
    cpu_nprocs
  ]
  
  http 8098 do
    get "/stats" do

      riak_stats.each do |t|
        test "#{t}" do |r|
          r.body.match /"#{t}":(\d+)/
        end
      end

      test "CPU Avg 1/5/15" do |r|
        r.body.match(/"cpu_avg1":(\d+),"cpu_avg5":(\d+),"cpu_avg15":(\d+)/).captures.join("/")
      end
    end
  end

  riak_ports = {
    epmd_port:    4369,
    handoff_port: 8099,
    pb_port:      8087,
  }

  riak_ports.each do |name, num|
    socket num do
      open? do 
        test "#{name} open?" do |r|
          r
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
auger-1.4.4 cfg/examples/riak.rb
auger-1.4.3 cfg/examples/riak.rb
auger-1.4.2 cfg/examples/riak.rb
auger-1.4.1 cfg/examples/riak.rb
auger-1.4.0 cfg/examples/riak.rb
auger-1.3.8 cfg/examples/riak.rb
auger-1.3.7 cfg/examples/riak.rb
auger-1.3.6 cfg/examples/riak.rb
auger-1.3.5 cfg/examples/riak.rb
auger-1.3.4 cfg/examples/riak.rb
auger-1.3.3 cfg/examples/riak.rb
auger-1.3.2 cfg/examples/riak.rb
auger-1.3.1 cfg/examples/riak.rb
auger-1.3.0 cfg/examples/riak.rb
auger-1.2.4 cfg/examples/riak.rb
auger-1.2.3 cfg/examples/riak.rb
auger-1.2.2 cfg/examples/riak.rb
auger-1.2.0 cfg/examples/riak.rb