diff --git a/nexus/src/app/background/tasks/instance_watcher.rs b/nexus/src/app/background/tasks/instance_watcher.rs index 7ba183f400..c01997ffba 100644 --- a/nexus/src/app/background/tasks/instance_watcher.rs +++ b/nexus/src/app/background/tasks/instance_watcher.rs @@ -516,7 +516,11 @@ impl BackgroundTask for InstanceWatcher { CheckOutcome::Failure(reason) => { *check_failures.entry(reason.as_str().into_owned()).or_default() += 1; } - CheckOutcome::Unknown => {} + CheckOutcome::Unknown => { + if let Err(reason) = check.result { + *check_errors.entry(reason.as_str().into_owned()).or_default() += 1; + } + } } if check.update_saga_queued { update_sagas_queued += 1;