r/SQL • u/balurathinam79 • Apr 11 '26
SQL Server What SQL Server issues actually wake you up at 2am? (DMV-detectable only)
Been putting together a lightweight monitoring approach that relies purely on DMVs and built-in system data — no agents, no custom XE sessions, no schema changes. Just what ships with SQL Server by default.
Trying to sanity check whether the coverage lines up with the kind of real-world incidents people actually get pulled into.
So far, the usual suspects seem to be covered:
- Blocking chains / LCK waits
- Sudden job slowdowns vs baseline
- Deadlocks from system_health
- Memory grant pressure / RESOURCE_SEMAPHORE
- CPU saturation patterns
- Long-running requests impacting others
- CDC log scan sessions stuck or holding the log open
- TempDB pressure (spills, version store, allocation contention)
- IO stalls and PAGEIOLATCH waits
- Query-level issues (missing indexes, plan instability, heavy hitters)
All inferred from things like:
sys.dm_exec_requests / sessions, sys.dm_io_virtual_file_stats, Query Store, msdb history, ring buffers, system_health.
Where things might be missing:
- AG replica lag / redo queue buildup
- Transaction log nearing full (before 9002)
- Backup gaps (no recent full/log backups)
- Repeated auto-growth events
- High VLF counts
- Index fragmentation (hard to track cheaply)
The real question:
For those of you supporting production SQL Server — what are the actual issues that cause incidents but are often missed by basic monitoring?
To keep it comparable:
- Must be detectable from DMVs / system views / default traces
- No custom XE sessions or third-party tooling
- No schema changes required on the monitored server
Also curious whether anyone has had success using server-level wait stats (sys.dm_os_wait_stats) for scheduled detection, or whether session-level signals are more actionable in practice.
Not looking for tool recommendations — just comparing notes on what’s actually worth detecting vs what looks good on paper.
War stories welcome 🙂
5
u/Ok_Assistant_2155 Apr 11 '26
tbh the one that always sneaks up is log file growth issues
everything looks fine until suddenly disk fills up
and then it’s panic mode
4
u/PossiblePreparation Apr 11 '26
This sounds like DBA alerting? To me, this seems over kill for waking someone up. What sort of SLA do you have to deal with at 2am?
I will get alerts for imminent disasters (disk space for my transaction logs are dangerously low) and disasters (cannot connect). There’s secondary monitoring in the form of application teams being able to phone in the night for a high sev issue that requires DBA.
There are some overnight jobs that must finish by certain times to meet an SLA that might be worth waking someone up for, but you don’t want a sleepless DBA because a report that is usually generated by 1am completed at 2am instead.
4
u/chadbaldwin SQL Server Developer Apr 11 '26
I'll be honest, it sounds like you're reinventing the wheel and probably not worth the time you're spending on it.
There's a bunch of monitoring tools that do not require setting up XEs or installing anything on the server.
For example DBADash - Runs on a pull model, you set up the agent on any machine, it reaches out and pulls from 1+ instances and it relies purely on the built in system views. It has custom reporting, alerting, monitoring, historical data collection, etc. AND it's free and open source.
https://dbadash.com/
There's also Erik Darlings new tool PerformanceMonitor, which is also free and open source, has alerts, runs only on system DMVs, etc.
https://github.com/erikdarlingdata/PerformanceMonitor
And there's a bunch of others but those are my two favorites. DBADash being my #1.
2
u/DatabaseSpace Apr 13 '26
Is this written by AI? Typing something like "The real question:" as a header doesn't seem like something a person would type.