Skip to content

Commit

Permalink
add reset metrics value
Browse files Browse the repository at this point in the history
  • Loading branch information
gamoutatsumi committed Apr 16, 2024
1 parent 71448cd commit 68e5151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/pkg/api/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func allocatePooledInstance(ctx context.Context, targets []lxdclient.LXDHost, re
metric.FailedLxdAllocate.WithLabelValues(i.Host.HostConfig.LxdHost, runnerName).Set(1)
continue
}
metric.FailedLxdAllocate.WithLabelValues(i.Host.HostConfig.LxdHost, runnerName).Set(0)
metric.FailedLxdAllocate.DeleteLabelValues(i.Host.HostConfig.LxdHost, runnerName)
return i.Host, i.InstanceName, nil
}

Expand Down

0 comments on commit 68e5151

Please sign in to comment.