mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
(RE-7014) update statsd to use gauge for running/ready
Previously was using increment which was incorrect for that particular application.
This commit is contained in:
parent
c133bed945
commit
b06de4bb8e
2 changed files with 6 additions and 6 deletions
|
|
@ -314,8 +314,8 @@ describe 'Pool Manager' do
|
|||
allow(redis).to receive(:scard).with('vmpooler__pending__pool1').and_return(0)
|
||||
allow(redis).to receive(:scard).with('vmpooler__running__pool1').and_return(5)
|
||||
|
||||
expect(statsd).to receive(:increment).with('vmpooler.ready.pool1', 1)
|
||||
expect(statsd).to receive(:increment).with('vmpooler.running.pool1', 5)
|
||||
expect(statsd).to receive(:gauge).with('vmpooler.ready.pool1', 1)
|
||||
expect(statsd).to receive(:gauge).with('vmpooler.running.pool1', 5)
|
||||
subject._check_pool(config[:pools][0])
|
||||
end
|
||||
|
||||
|
|
@ -323,9 +323,9 @@ describe 'Pool Manager' do
|
|||
allow(redis).to receive(:scard).with('vmpooler__running__pool1').and_return(1)
|
||||
allow(redis).to receive(:scard).with('vmpooler__ready__pool1').and_return(0)
|
||||
allow(redis).to receive(:scard).with('vmpooler__pending__pool1').and_return(0)
|
||||
allow(statsd).to receive(:increment).with('vmpooler.running.pool1', 1)
|
||||
allow(statsd).to receive(:gauge).with('vmpooler.running.pool1', 1)
|
||||
|
||||
expect(statsd).to receive(:increment).with('vmpooler.ready.pool1', 0)
|
||||
expect(statsd).to receive(:gauge).with('vmpooler.ready.pool1', 0)
|
||||
subject._check_pool(config[:pools][0])
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue