fix panic in emitting tagged metrics

This commit is contained in:
Chelsea Holland Komlo 2017-09-11 15:32:37 +00:00
parent cf274cad3c
commit 848af92183
1 changed files with 1 additions and 0 deletions

View File

@ -1940,6 +1940,7 @@ func (c *Client) setGaugeForDiskStats(nodeID string, hStats *stats.HostStats) {
// setGaugeForAllocationStats proxies metrics for allocation specific statistics
func (c *Client) setGaugeForAllocationStats(nodeID string) {
c.configLock.RLock()
node := c.configCopy.Node
c.configLock.RUnlock()
total := node.Resources