diff --git a/client/allochealth/tracker.go b/client/allochealth/tracker.go index 15ac476406ce..fe5aac69f360 100644 --- a/client/allochealth/tracker.go +++ b/client/allochealth/tracker.go @@ -126,6 +126,10 @@ func NewTracker(parentCtx context.Context, logger hclog.Logger, alloc *structs.A } } + for _, s := range t.tg.Services { + t.consulCheckCount += len(s.Checks) + } + t.ctx, t.cancelFn = context.WithCancel(parentCtx) return t }