From 11bda0f31a36f0e56dfbba79b4e22c620176ad35 Mon Sep 17 00:00:00 2001 From: John O'Connor Date: Fri, 6 Nov 2020 20:46:11 +0000 Subject: [PATCH] (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. --- lib/vmpooler/api/v1.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vmpooler/api/v1.rb b/lib/vmpooler/api/v1.rb index 1f4a23e..4c53d5f 100644 --- a/lib/vmpooler/api/v1.rb +++ b/lib/vmpooler/api/v1.rb @@ -209,7 +209,7 @@ module Vmpooler break else vms << [vmpool, vmname, vmtemplate] - metrics.increment("checkout.success.#{vmtemplate}") + metrics.increment("checkout.success.#{vmpool}") end end end