mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Merge pull request #5541 from hashicorp/b/5540-bad-client-alloc-metrics
client/metrics: fixed stale metrics
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user