From 8943a29428ffc464e70872b8bda455964408d170 Mon Sep 17 00:00:00 2001 From: Chelsea Holland Komlo Date: Mon, 25 Sep 2017 16:05:49 +0000 Subject: [PATCH] Move setGaugeForAllocationStats to emitClientMetrics --- client/client.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/client.go b/client/client.go index b77bf6107..680fbd9af 100644 --- a/client/client.go +++ b/client/client.go @@ -2039,15 +2039,14 @@ func (c *Client) emitHostStats() { c.setGaugeForUptime(hStats) c.setGaugeForCPUStats(nodeID, hStats) c.setGaugeForDiskStats(nodeID, hStats) - - // TODO: This should be moved to emitClientMetrics - c.setGaugeForAllocationStats(nodeID) } // emitClientMetrics emits lower volume client metrics func (c *Client) emitClientMetrics() { nodeID := c.NodeID() + c.setGaugeForAllocationStats(nodeID) + // Emit allocation metrics blocked, migrating, pending, running, terminal := 0, 0, 0, 0, 0 for _, ar := range c.getAllocRunners() {