Skip to content

Fix NOC deadlock severity dot showing green during active deadlocks#174

Merged
erikdarlingdata merged 1 commit intodevfrom
feature/deadlock-severity-fix
Feb 19, 2026
Merged

Fix NOC deadlock severity dot showing green during active deadlocks#174
erikdarlingdata merged 1 commit intodevfrom
feature/deadlock-severity-fix

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • DeadlockSeverity now checks LastDeadlockMinutesAgo (from extended events) in addition to the perfmon counter delta
  • Deadlock within 10 min = Critical (red), within 60 min = Warning (yellow), older = Healthy (green)
  • Added missing OnPropertyChanged(nameof(DeadlockSeverity)) in the LastDeadlockMinutesAgo setter so the dot updates when the XE timestamp arrives

Closes #170

Test plan

  • Generate a deadlock on sql2022, verify NOC shows red dot within 10 min
  • Wait >10 min, verify dot transitions to yellow
  • Wait >60 min, verify dot transitions to green

🤖 Generated with Claude Code

DeadlockSeverity was only checking the perfmon counter delta between
poll cycles, so deadlocks that occurred before Dashboard startup or
between the first two polls showed green. Now also checks
LastDeadlockMinutesAgo from extended events: <=10 min = Critical,
<=60 min = Warning. Added missing OnPropertyChanged notification
so the severity dot updates when the timestamp arrives.

Closes #170

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant