Microsoft SQL Server monitoring maturity model: from survival to expert
Most SQL Server outages are not exotic. The transaction log fills because nobody noticed log backups stopped. A head blocker sits idle with an open transaction while the worker thread pool drains. Error 825 appears in the error log for weeks before the disk actually fails. In each case, the signal was available; the monitoring just was not looking at it.
The difference between teams that get paged by users and teams that get paged by their own alerts is coverage depth, not tooling budget. This article lays out a four-level maturity model for SQL Server monitoring: Survival, Operational, Mature, and Expert. Each level adds a specific set of signals, and each exists because of failure modes the previous level cannot see.
Use this as a self-assessment. Find the level you are actually at, not the level your monitoring vendor claims you are at, and work out what it takes to move up one level. Moving from Survival to Operational is a weekend project. Moving from Mature to Expert is a mindset change.
flowchart TD L1[Level 1 - Survival
Is it up? Is it on fire?] L2[Level 2 - Operational
Is it healthy under load?] L3[Level 3 - Mature
Why is it degrading?] L4[Level 4 - Expert
What breaks next week?] L1 --> L2 --> L3 --> L4
How to use this model
The levels are cumulative. Each assumes everything below it is in place, alerting reliably, and being acted on. A team that monitors spinlock contention but has no alert on transaction log usage is not Expert; it is Survival with a hobby.
Two rules before the details:
- Every signal needs an owner and a response. A metric nobody pages on and nobody trends is decoration. When you add a signal, decide in advance what threshold is actionable and what the first response is.
- Cumulative counters need delta sampling. Many signals below come from
sys.dm_os_performance_countersandsys.dm_os_wait_stats, which accumulate since instance startup. Readingcntr_valuedirectly gives you a meaningless large number. Rates require two samples and a subtraction. Many teams sit at Level 2 believing they are at Level 3 because they collect wait stats but never delta them.
Level 1: Survival
Survival monitoring answers one question: is the instance alive and recoverable? It catches hard outages and nothing else. If this is all you have, you will still have bad nights, but you will not have data-loss surprises.
| Signal | What it catches | First check |
|---|---|---|
| Service state | Engine down, failed restart after patching | sqlservr process up; on Linux systemctl status mssql-server |
| Connectivity probe | Network break, listener failure, total saturation | sqlcmd -S localhost -Q "SELECT 1" -l 10 |
| Database online state | SUSPECT, RECOVERY_PENDING, stuck RESTORING | sys.databases where state_desc <> 'ONLINE' |
| Severity 19+ errors in error log | Resource failures, fatal errors, corruption | sp_readerrorlog filtered for specific error numbers |
| One successful backup in 24h | Broken backup job, full backup target | msdb.dbo.backupset for backup_finish_date |
| Disk free on data/log/TempDB volumes | The most preventable outage class | sys.dm_os_volume_stats joined to sys.master_files |
Close these gaps first: check msdb.dbo.backupset rather than backup job status, because jobs report success while writing to a bad target. Watch for error 825 (read retry succeeded) in the error log, not only 823 and 824. Error 825 is the disk failing slowly, and it is often the only warning you get.
If you are here: you find out about outages from users, and post-mortems end with “we should have seen that earlier.” You are right, and Level 2 is how.
Level 2: Operational
Operational monitoring answers: is the instance healthy under its actual workload? This is the baseline any team running production SQL Server should hold. Missing these signals means you cannot tell a slow Tuesday from an incident until someone calls.
| Signal | What it catches | Warning sign |
|---|---|---|
| Batch requests/sec (delta) | Throughput drop (upstream dead or engine unresponsive) or spike (retry storm) | Sustained deviation beyond 2x or below 0.5x of baseline |
| Page Life Expectancy | Buffer pool memory pressure building | Drop of 50%+ from baseline |
| Buffer cache hit ratio | Working set no longer fits in memory | Below 95% on OLTP |
| Lock waits and deadlock count | Blocking building, lock ordering problems | Rising LCK_M_* waits; any sustained deadlock increase |
| Log percent used per database | Imminent log full, with log_reuse_wait_desc telling you why | Above 70% with a reason other than NOTHING |
| CPU utilization (SQL vs other) | CPU-bound workload vs external competition | SQL CPU sustained above 70% |
| AG send/redo queue | Replication lag, failover RTO risk | Sustained growth on either queue |
| Top 5 wait categories | Where the engine is actually spending time | Any single wait type above 30-40% of total with latency impact |
Two things make or break this level. First, baselines. Batch requests/sec and CPU mean nothing without a time-of-day and day-of-week baseline; a drop to near-zero during business hours is an outage, and the same reading at 3 a.m. Sunday is normal. Second, the log_reuse_wait_desc column. When log usage climbs, that column tells you whether the cause is missing log backups, an active transaction, replication lag, or an AG secondary falling behind. Adding disk space without reading it treats the symptom and leaves the cause running.
If you are here: you detect most incidents before users do, but diagnosis still takes hours because you can see that the engine is waiting, not precisely where and why.
Level 3: Mature
Mature monitoring answers: why is performance degrading, and for whom? The shift from Level 2 is granularity and attribution. Instead of top-5 waits sampled occasionally, you get the full wait breakdown delta-sampled at short intervals, plus the signals that attribute load to specific queries, files, and sessions.
- Delta-sampled wait breakdown. Snapshot
sys.dm_os_wait_statsevery 30 seconds and compute deltas, excluding the benign idle waits. A cumulative read mixes last week’s backup window into today’s incident. - Memory grant waits.
Memory Grants Pendingandsys.dm_exec_query_memory_grants. Any sustained nonzero value means queries are parsed, optimized, and queued doing nothing while the application sees a hang. This is one of the most commonly missed signals in SQL Server. - TempDB by category. User objects, internal objects (spills), and version store separately, from
tempdb.sys.dm_db_file_space_usage. Each category points at a different cause: application temp table use, bad memory grants spilling, or long-running transactions under RCSI. - Per-file I/O latency.
sys.dm_io_virtual_file_statsdelta-sampled, per database file, reads and writes split. Data file reads above 20ms or log writes above 5ms sustained is degraded; log writes above 20ms directly tax every commit. - Blocking and head-blocker detection. Not just “blocking exists” but chain depth, duration, and whether the head blocker is sleeping with an open transaction. A sleeping head blocker does not self-resolve and is the usual start of the worker-exhaustion cascade.
- Worker and runnable backlog. Active workers versus
max_workers_count, plusrunnable_tasks_countper scheduler fromsys.dm_os_schedulers. Runnable backlog is the in-engine CPU queue that OS CPU metrics miss entirely; you can have low OS CPU with every scheduler queuing. - Query Store plan regression detection. SQL 2016 and later. Query Store persists plan history across restarts, which DMVs do not, and lets you detect and force regressing plans instead of rediscovering them every incident.
- suspect_pages.
msdb.dbo.suspect_pagesis a durable record of 823 and 824 failures (bad checksum, torn page) that survives restarts and log recycling. Any new row is pageable. - Certificate expiry.
sys.certificateswithexpiry_date. Expired certificates break AG endpoint authentication and backup encryption, and they tend to expire during an incident rather than during business hours.
If you are here: your incident reviews name the query, the file, or the session that caused the problem, and mean time to diagnose drops from hours to minutes. What remains is predicting problems before they produce symptoms.
Level 4: Expert
Expert monitoring answers: what breaks next week? These signals are about distribution, drift, and early warning. They come from having been burned by failure modes that look fine at every aggregate level.
- Per-NUMA PLE. The instance-wide
Buffer ManagerPLE is an average across NUMA nodes. One node can be thrashing at a PLE of 200 while the aggregate reads 695 and looks healthy. On multi-socket hosts, monitorBuffer NodePLE per node. - Signal-wait trending.
signal_wait_time_msas a percentage of total wait time, trended over weeks. This is time spent on the runnable queue after the resource was available: pure CPU scheduler pressure. A slow rise from 5% to 15% means you are losing CPU headroom invisibly, especially on VMs where steal time hides it. Above 20% indicates active CPU pressure. - VLF count per database. From
sys.dm_db_log_info(SQL 2016 SP2+). Thousands of small auto-growths produce thousands of virtual log files, which slow crash recovery, backup, and restore. This does nothing for months, then turns a 2-minute restart into a 2-hour one at the worst moment. Above 1000, plan to consolidate; above 10,000, expect recovery to be significantly slow. - Spinlock contention.
sys.dm_os_spinlock_stats. Spinlock contention shows up as high CPU with no matching workload increase and does not appear in wait statistics at all. On high-throughput systems it is the explanation for “CPU is at 100% but throughput is flat.” - Version store growth rate. Not just current size but rate, per database, from
sys.dm_tran_version_store_space_usage. A linear climb means a long-running transaction under RCSI or snapshot isolation is accumulating versions, and you can compute exactly when TempDB fills instead of being surprised by it. - Predictive PLE. Trend PLE over days and extrapolate to your threshold, so memory pressure becomes a planned capacity conversation instead of a spiral at peak load. This is a trending practice on top of the PLE counter, not a built-in SQL Server feature.
If you are here: your pages are mostly leading indicators, and capacity problems arrive as tickets with runway estimates attached.
Common traps at every level
- Reading cumulative counters as rates.
Batch Requests/secin the DMV is cumulative since startup. If your dashboard shows a number in the billions, you are not at the level you think. - Alerting on CPU alone. Low CPU with high latency is usually blocking or I/O starvation and is routinely missed. High CPU is often legitimate: backups, ETL, cold starts.
- Monitoring without delta persistence. DMV data resets on restart. If your only copy of wait stats and I/O stats lives inside the instance, every restart destroys your forensic record.
- Letting maintenance page you. CHECKDB, index rebuilds, and backups legitimately spike I/O, CPU, and lock waits. Suppress maintenance windows in alerting rather than disabling the signals.
How Netdata helps
- Netdata samples the cumulative SQL Server counters (
sys.dm_os_performance_counters, wait stats, per-file I/O stats) at short intervals and stores the computed rates externally, so a restart does not erase your forensic history and you never read a raw cumulative value by mistake. - Wait statistics are delta-sampled and broken down by wait type, which is the Level 3 discipline most teams implement by hand, including the
signal_wait_time_mssplit that exposes CPU scheduler pressure at Level 4. - Per-database log usage, TempDB space by category, memory grants pending, and worker thread utilization are charted together, so the blocking-to-thread-exhaustion cascade and the memory-pressure spiral show up as correlated shapes instead of unrelated graphs.
- External persistence of per-file I/O latency and PLE trends supports the Level 4 practice of extrapolating runway before thresholds are crossed.
Netdata’s Microsoft SQL Server monitoring with Netdata brings these signals together with per-second metrics and ML anomaly detection.
Related guides
- SQL Server user connections climbing: connection pool leaks and retry storms
- SQL Server CPU utilization high: telling query load apart from a bad plan
- SQL Server CXPACKET and CXCONSUMER waits: parallelism, MAXDOP, and what is actually wrong
- SQL Server high compilations per second: plan cache pollution and CPU burn
- SQL Server runnable tasks backlog: the in-engine CPU queue OS metrics miss
- SQL Server TempDB full: the shared scratch database that halts every query
- SQL Server THREADPOOL waits: worker thread exhaustion and refused connections
- SQL Server worker thread exhaustion: when the instance stops accepting work






