(MAINT) Fix checkout counter allocation

Checkout metric counters were against the template name and not the
actual pool used which prevents us from counting the checkouts in the
pixa4 pools for example.

Note - this is a re-rerun - the last commit on this file over-wrote
the change.
This commit is contained in:
John O'Connor 2020-11-10 19:13:24 +00:00
parent 55e45bcbe5
commit a407d2329d

View file

@ -213,7 +213,7 @@ module Vmpooler
if vmname if vmname
account_for_starting_vm(vmpool, vmname) account_for_starting_vm(vmpool, vmname)
vms << [vmpool, vmname, vmtemplate] vms << [vmpool, vmname, vmtemplate]
metrics.increment("checkout.success.#{vmtemplate}") metrics.increment("checkout.success.#{vmpool}")
else else
failed = true failed = true
metrics.increment("checkout.empty.#{requested}") metrics.increment("checkout.empty.#{requested}")