Skip to content

Commit

Permalink
client/metrics: modified metrics to use (updated) client copy of allo…
Browse files Browse the repository at this point in the history
…cation instead of (unupdated) server copy
  • Loading branch information
Chris Baker committed Apr 22, 2019
1 parent 8a0df40 commit 7d8fa4c
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 7d8fa4c

Please sign in to comment.