Skip to content

Commit

Permalink
Merge pull request #5541 from hashicorp/b/5540-bad-client-alloc-metrics
Browse files Browse the repository at this point in the history
client/metrics: fixed stale metrics
  • Loading branch information
Chris Baker committed Apr 22, 2019
2 parents 151e0ae + 7d8fa4c commit 7b4ac71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2638,7 +2638,7 @@ func (c *Client) emitClientMetrics() {
// Emit allocation metrics
blocked, migrating, pending, running, terminal := 0, 0, 0, 0, 0
for _, ar := range c.getAllocRunners() {
switch ar.Alloc().ClientStatus {
switch ar.AllocState().ClientStatus {
case structs.AllocClientStatusPending:
switch {
case ar.IsWaiting():
Expand Down

0 comments on commit 7b4ac71

Please sign in to comment.