The only agent that thinks for itself

Autonomous Monitoring with self-learning AI built-in, operating independently across your entire stack.

Unlimited Metrics & Logs
Machine learning & MCP
5% CPU, 150MB RAM
3GB disk, >1 year retention
800+ integrations, zero config
Dashboards, alerts out of the box
> Discover Netdata Agents

Centralized metrics streaming and storage

Aggregate metrics from multiple agents into centralized Parent nodes for unified monitoring across your infrastructure.

Stream from unlimited agents
Long-term data retention
High availability clustering
Data replication & backup
Scalable architecture
Enterprise-grade security
> Learn about Parents

Fully managed cloud platform

Access your monitoring data from anywhere with our SaaS platform. No infrastructure to manage, automatic updates, and global availability.

Zero infrastructure management
99.9% uptime SLA
Global data centers
Automatic updates & patches
Enterprise SSO & RBAC
SOC2 & ISO certified
> Explore Netdata Cloud

Deploy Netdata Cloud in your infrastructure

Run the full Netdata Cloud platform on-premises for complete data sovereignty and compliance with your security policies.

Complete data sovereignty
Air-gapped deployment
Custom compliance controls
Private network integration
Dedicated support team
Kubernetes & Docker support
> Learn about Cloud On-Premises

Powerful, intuitive monitoring interface

Modern, responsive UI built for real-time troubleshooting with customizable dashboards and advanced visualization capabilities.

Real-time chart updates
Customizable dashboards
Dark & light themes
Advanced filtering & search
Responsive on all devices
Collaboration features
> Explore Netdata UI

Monitor on the go

Native iOS and Android apps bring full monitoring capabilities to your mobile device with real-time alerts and notifications.

iOS & Android apps
Push notifications
Touch-optimized interface
Offline data access
Biometric authentication
Widget support
> Download apps

The future of infrastructure observability

See our strategic direction across AI-native observability, full-stack signals, operational intelligence, and enterprise platform maturity.

AI-native observability
Full-stack signal coverage
Operational intelligence
Enterprise platform maturity
Agent releases every 6 weeks
Cloud continuous delivery
> Explore Product Roadmap

Best energy efficiency

True real-time per-second

100% automated zero config

Centralized observability

Multi-year retention

High availability built-in

Zero maintenance

Always up-to-date

Enterprise security

Complete data control

Air-gap ready

Compliance certified

Millisecond responsiveness

Infinite zoom & pan

Works on any device

Native performance

Instant alerts

Monitor anywhere

AI-native observability

Continuous delivery

Open source foundation

80% Faster Incident Resolution

AI-powered troubleshooting from detection, to root cause and blast radius identification, to reporting.

True Real-Time and Simple, even at Scale

Linearly and infinitely scalable full-stack observability, that can be deployed even mid-crisis.

90% Cost Reduction, Full Fidelity

Instead of centralizing the data, Netdata distributes the code, eliminating pipelines and complexity.

See and Map Your Entire Network

Live topology, flow analytics, and SNMP device and trap monitoring — unified with your full-stack observability.

Control Without Surrender

SOC 2 Type 2 certified with every metric kept on your infrastructure.

Integrations

800+ collectors and notification channels, auto-discovered and ready out of the box.

800+ data collectors
Auto-discovery & zero config
Cloud, infra, app protocols
Notifications out of the box
> Explore integrations
Real Results
46% Cost Reduction

Reduced monitoring costs by 46% while cutting staff overhead by 67%.

— Leonardo Antunez, Codyas

Zero Pipeline

No data shipping. No central storage costs. Query at the edge.

From Our Users
"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

No Query Language

Point-and-click troubleshooting. No PromQL, no LogQL, no learning curve.

Enterprise Ready
67% Less Staff, 46% Cost Cut

Enterprise efficiency without enterprise complexity—real ROI from day one.

— Leonardo Antunez, Codyas

SOC 2 Type 2 Certified

Zero data egress. Only metadata reaches the cloud. Your metrics stay on your infrastructure.

Full Coverage
800+ Collectors

Auto-discovered and configured. No manual setup required.

Any Notification Channel

Slack, PagerDuty, Teams, email, webhooks—all built-in.

Built for the People Who Get Paged

Because 3am alerts deserve instant answers, not hour-long hunts.

Every Industry Has Rules. We Master Them.

See how healthcare, finance, and government teams cut monitoring costs 90% while staying audit-ready.

Monitor Any Technology. Configure Nothing.

Install the agent. It already knows your stack.
From Our Users
"A Rare Unicorn"

Netdata gives more than you invest in it. A rare unicorn that obeys the Pareto rule.

— Eduard Porquet Mateu, TMB Barcelona

99% Downtime Reduction

Reduced website downtime by 99% and cloud bill by 30% using Netdata alerts.

— Falkland Islands Government

Real Savings
30% Cloud Cost Reduction

Optimized resource allocation based on Netdata alerts cut cloud spending by 30%.

— Falkland Islands Government

46% Cost Cut

Reduced monitoring staff by 67% while cutting operational costs by 46%.

— Codyas

Real Coverage
"Plugin for Everything"

Netdata has agent capacity or a plugin for everything, including Windows and Kubernetes.

— Eduard Porquet Mateu, TMB Barcelona

"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

Real Speed
Troubleshooting in 30 Seconds

From 2-3 minutes to 30 seconds—instant visibility into any node issue.

— Matthew Artist, Nodecraft

20% Downtime Reduction

20% less downtime and 40% budget optimization from out-of-the-box monitoring.

— Simon Beginn, LANCOM Systems

Pay per Node. Unlimited Everything Else.

One price per node. Unlimited metrics, logs, users, and retention. No per-GB surprises.

Free tier—forever
No metric limits or caps
Retention you control
Cancel anytime
> See pricing plans

What's Your Monitoring Really Costing You?

Most teams overpay by 40-60%. Let's find out why.

Expose hidden metric charges
Calculate tool consolidation
Customers report 30-67% savings
Results in under 60 seconds
> See what you're really paying

Your Infrastructure Is Unique. Let's Talk.

Because monitoring 10 nodes is different from monitoring 10,000.

On-prem & air-gapped deployment
Volume pricing & agreements
Architecture review for your scale
Compliance & security support
> Start a conversation

Monitoring That Sells Itself

Deploy in minutes. Impress clients in hours. Earn recurring revenue for years.

30-second live demos close deals
Zero config = zero support burden
Competitive margins & deal protection
Response in 48 hours
> Apply to partner

Per-Second Metrics at Homelab Prices

Same engine, same dashboards, same ML. Just priced for tinkerers.

Community: Free forever · 5 nodes · non-commercial
Homelab: $90/yr · unlimited nodes · fair usage
> Get the Homelab Plan

$1,000 Per Referral. Unlimited Referrals.

Your colleagues get 10% off. You get 10% commission. Everyone wins.

10% of subscriptions, up to $1,000 each
Track earnings inside Netdata Cloud
PayPal/Venmo payouts in 3-4 weeks
No caps, no complexity
> Get your referral link
Cost Proof
40% Budget Optimization

"Netdata's significant positive impact" — LANCOM Systems

Calculate Your Savings

Compare vs Datadog, Grafana, Dynatrace

Savings Proof
46% Cost Reduction

"Cut costs by 46%, staff by 67%" — Codyas

30% Cloud Bill Savings

"Reduced cloud bill by 30%" — Falkland Islands Gov

Enterprise Proof
"Better Than Combined Alternatives"

"Better observability with Netdata than combining other tools." — TMB Barcelona

Real Engineers, <24h Response

DPA, SLAs, on-prem, volume pricing

Why Partners Win
Demo Live Infrastructure

One command, 30 seconds, real data—no sandbox needed

Zero Tickets, High Margins

Auto-config + per-node pricing = predictable profit

Homelab Ready
Free Video Course

8-episode Netdata tutorial by LearnLinux.tv

76k+ GitHub Stars

3rd most starred monitoring project

Worth Recommending
Product That Delivers

Customers report 40-67% cost cuts, 99% downtime reduction

Zero Risk to Your Rep

Free tier lets them try before they buy

AI Support Assistant, Available 24/7

Nedi has access to all official documentation, source code, and resources. Ask any question about Netdata—responds in your language.

Deployment & configuration
Troubleshooting & sizing
Alerts & notifications
Evidence-based answers
> Ask Nedi now

Never Fight Fires Alone

Docs, community, and expert help—pick your path to resolution.

Learn.netdata.cloud docs
Discord, Forums, GitHub
Premium support available
> Get answers now

60 Seconds to First Dashboard

One command to install. Zero config. 850+ integrations documented.

Linux, Windows, K8s, Docker
Auto-discovers your stack
> Read our documentation

76,000+ Engineers Strong

615+ contributors. 1.5M daily downloads. One mission: simplify observability.

Per-Second. 90% Cheaper. Data Stays Home.

Side-by-side comparisons: costs, real-time granularity, and data sovereignty for every major tool.

See why teams switch from Datadog, Prometheus, Grafana, and more.

> Browse all comparisons
Edge-Native Observability, Born Open Source
Per-second visibility, ML on every metric, and data that never leaves your infrastructure.
Founded in 2016
615+ contributors worldwide
Remote-first, engineering-driven
Open source first
> Read our story
Promises We Publish—and Prove
12 principles backed by open code, independent validation, and measurable outcomes.
Open source, peer-reviewed
Zero config, instant value
Data sovereignty by design
Aligned pricing, no surprises
> See all 12 principles
Edge-Native, AI-Ready, 100% Open
76k+ stars. Full ML, AI, and automation—GPLv3+, not premium add-ons.
76,000+ GitHub stars
GPLv3+ licensed forever
ML on every metric, included
Zero vendor lock-in
> Explore our open source
Build Real-Time Observability for the World
Remote-first team shipping per-second monitoring with ML on every metric.
Remote-first, fully distributed
Open source (76k+ stars)
Challenging technical problems
Your code on millions of systems
> See open roles
Meet the Team Behind Netdata
Conferences, meetups, and tradeshows where you can see Netdata in action and talk to the engineers who build it.
Live demos and deep dives
Book 1-on-1 meetings
Talks and panel sessions
Event recaps and photos
> See all events
Talk to a Netdata Human in <24 Hours
Sales, partnerships, press, or professional services—real engineers, fast answers.
Discuss your observability needs
Pricing and volume discounts
Partnership opportunities
Media and press inquiries
> Book a conversation
Your Data. Your Rules.
On-prem data, cloud control plane, transparent terms.
Trust & Scale
76,000+ GitHub Stars

One of the most popular open-source monitoring projects

SOC 2 Type 2 Certified

Enterprise-grade security and compliance

Data Sovereignty

Your metrics stay on your infrastructure

Validated
University of Amsterdam

"Most energy-efficient monitoring solution" — ICSOC 2023, peer-reviewed

ADASTEC (Autonomous Driving)

"Doesn't miss alerts—mission-critical trust for safety software"

Community Stats
615+ Contributors

Global community improving monitoring for everyone

1.5M+ Downloads/Day

Trusted by teams worldwide

GPLv3+ Licensed

Free forever, fully open source agent

Why Join?
Remote-First

Work from anywhere, async-friendly culture

Impact at Scale

Your work helps millions of systems

$ guides / microsoft-sql-server / microsoft-sql-server-high-recompilations

Operations Guides

SQL Server high recompilations: stale statistics and schema changes churning plans

CPU is climbing, SOS_SCHEDULER_YIELD is creeping up, batch requests look normal, and your top waits are not obviously I/O or lock related. Check the SQL Statistics counters: if SQL Re-Compilations/sec is running well above 10% of SQL Compilations/sec, you have a plan stability problem, not a plan cache efficiency problem.

Recompilations are not the same as first-time compilations. First-time compilations (or recompilations forced by plan cache eviction under memory pressure) belong in SQL Server high compilations per second. Recompilations mean SQL Server had a cached plan, decided it could no longer trust it, and spent CPU rebuilding it. Each recompile is CPU work, and if the recompiling statement sits inside a multi-statement batch or stored procedure, the cost cascades across dependent statements.

The common triggers are stable and well-known: statistics auto-update crossing the recompilation threshold, schema or index changes, SET option changes per session, explicit OPTION (RECOMPILE) hints, temp table changes, and a handful of rarer cases. The fix is to find which statements are recompiling, classify why with the SQL:StmtRecompile event subclass, and address the underlying cause.

What this means

Since SQL Server 2005, automatic recompiles are statement-level, not batch-level. The optimizer invalidates only the specific statement whose inputs changed, not the whole procedure. That limits blast radius, but it means the symptom is often a long-lived stored procedure whose individual statements keep getting rebuilt on every call.

The four triggers you will see most often in production:

  1. Statistics changed (EventSubClass 2). Auto-update statistics fired because a table crossed its recompilation threshold (RT). For permanent tables the threshold is 500 modifications if cardinality was 500 or less at statistics evaluation time, and 500 + 20% of cardinality above that (on SQL Server 2016+ at database compatibility level 130, the large-table threshold is the lower of 500 + 20% and the square root of 1000 times cardinality). The recompile itself is usually correct and healthy. The problem is the rate.
  2. Schema changed (EventSubClass 1). Indexes were added, dropped, or disabled. DDL during load will recompile every cached plan that touches the affected object.
  3. Set option changed (EventSubClass 4). The application is sending connections with different SET ANSI_NULLS, ANSI_PADDING, CONCAT_NULL_YIELDS_NULL, LANGUAGE, DATEFORMAT, or similar options. SQL Server treats these as plan-invalidating because they change semantics.
  4. Option (recompile) requested (EventSubClass 11). Self-inflicted. Someone added OPTION (RECOMPILE) to a hot statement.

Temp tables get their own subclass (Temp table changed, EventSubClass 5) because temp tables have a lower RT than permanent tables: 6 modifications for tables of fewer than 6 rows, 500 modifications for tables of 6 to 500 rows, and above that 500 + 20% (or the lower dynamic threshold at compatibility level 130 on SQL Server 2016+). Heavy temp table use inside a loop is a classic source of steady recompile pressure.

Common causes

CauseWhat it looks likeFirst thing to check
Statistics auto-update on a volatile tableRecompile ratio spikes after a high-write window; SQL Re-Compilations/sec tracks auto update statistics entries in the error logSQL:StmtRecompile EventSubClass 2; auto-stats entries in ERRORLOG
DDL during business hoursRecompiles cluster around a deployment window or index job timestampEventSubClass 1; deployment/change records
Per-connection SET option driftRecompiles are steady, not spiky; sys.dm_exec_sessions shows different SET options across connections from the same appEventSubClass 4; compare SET options per session
Overused OPTION (RECOMPILE)Recompiles run at a high but stable rate; ratio holds even off-peakGrep sys.dm_exec_query_stats or Query Store for OPTION (RECOMPILE)
Temp table churn in loopsRecompiles on the same procedure repeatedly within a single executionEventSubClass 5; review temp table DDL inside loops
SQL 2019 + MARS deploymentExcessive Temp table changed recompiles not seen on prior versions; possibly with blocking that has the same session ID on both sidesSQL Server build below 2019 CU5; KB4555232

Quick checks

All read-only.

-- Check recompile and compilation rates (cumulative counters - compute deltas)
SELECT counter_name, cntr_value
FROM sys.dm_os_performance_counters
WHERE counter_name IN ('SQL Compilations/sec', 'SQL Re-Compilations/sec', 'Batch Requests/sec')
  AND object_name LIKE '%SQL Statistics%';
-- Top statements by recompile count, using plan_generation_num
SELECT TOP (20)
    qs.sql_handle,
    qs.plan_handle,
    qs.plan_generation_num,
    qs.execution_count,
    qs.last_execution_time,
    SUBSTRING(st.text, (qs.statement_start_offset / 2) + 1,
        (CASE qs.statement_end_offset
            WHEN -1 THEN DATALENGTH(st.text)
            ELSE qs.statement_end_offset
         END - qs.statement_start_offset) / 2 + 1) AS statement_text
FROM sys.dm_exec_query_stats qs
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) st
WHERE qs.plan_generation_num > 1
ORDER BY qs.plan_generation_num DESC;
-- Confirm CPU pressure is real and not just OS utilization
SELECT
    wait_type,
    waiting_tasks_count,
    wait_time_ms,
    signal_wait_time_ms,
    CAST(100.0 * wait_time_ms / NULLIF(SUM(wait_time_ms) OVER (), 0) AS DECIMAL(5,2)) AS pct
FROM sys.dm_os_wait_stats
WHERE wait_type IN ('SOS_SCHEDULER_YIELD', 'RESOURCE_SEMAPHORE_QUERY_COMPILE', 'CXPACKET', 'CXCONSUMER')
  AND waiting_tasks_count > 0
ORDER BY wait_time_ms DESC;
-- Verify plan cache is not simultaneously being evicted by memory pressure
SELECT
    SUM(CAST(size_in_bytes AS BIGINT)) / 1024 / 1024 AS plan_cache_mb,
    SUM(CASE WHEN usecounts = 1 AND objtype = 'Adhoc' THEN 1 ELSE 0 END) AS single_use_plans,
    COUNT(*) AS total_plans
FROM sys.dm_exec_cached_plans;
-- SQL Server build (relevant for the SQL 2019 Reduce Recompilations / MARS issue)
SELECT @@VERSION AS sql_version;

How to diagnose it

  1. Confirm the rate is actually abnormal. Take two samples of the SQL Re-Compilations/sec and SQL Compilations/sec counters and compute the rate. The threshold to investigate is recompiles greater than 10% of compilations sustained, with corresponding CPU pressure. Also compare SQL Compilations/sec against Batch Requests/sec; if compilations themselves are more than 10-20% of batch requests, you have a plan cache problem too and should read SQL Server high compilations per second first.

  2. Identify which statements recompile. Use sys.dm_exec_query_stats.plan_generation_num. Values greater than 1 mean the plan has been regenerated since it was first cached. Sort by plan_generation_num DESC to find the worst offenders, then map them back to object names via sys.dm_exec_sql_text. Note: plan_generation_num only reflects currently cached plans. If memory pressure has evicted the plan, you need Query Store for persistent history.

  3. Classify the cause via SQL:StmtRecompile. Do not use the deprecated SP:Recompile event class; Microsoft’s documented guidance is to trace SQL:StmtRecompile. Capture it through Extended Events and read the EventSubClass column: 1=Schema changed, 2=Statistics changed, 3=Deferred compile, 4=Set option changed, 5=Temp table changed, 6=Remote rowset changed, 7=For Browse permissions changed, 8=Query notification environment changed, 9=Partition view changed, 10=Cursor options changed, 11=Option (recompile) requested.

  4. Correlate with deployment windows and auto-stats events. If EventSubClass 1 dominates, line up the recompile spikes with DDL change records. If EventSubClass 2 dominates, look for SQL Server has encountered N occurrence(s) of autostats entries in the error log around the same time, and identify which table’s RT is being tripped.

  5. Rule out the SQL 2019 Reduce Recompilations bug. On SQL Server 2019 RTM through CU4 with Multiple Active Result Sets (MARS) connections enabled, the Reduce Recompilations feature (on by default) could cause blocking where the blocker and blockee shared the same session ID, plus excessive temp table recompiles. This was fixed in CU5 (KB4555232). If your build is below CU5 and you use MARS, treat that as the prime suspect before deeper tuning.

flowchart TD
    A[Recompiles/sec greater than 10% of Compilations/sec] --> B{Top EventSubClass?}
    B -->|2 Statistics changed| C[Auto-update stats crossing RT]
    B -->|1 Schema changed| D[DDL during load]
    B -->|4 Set option changed| E[Session SET option drift]
    B -->|11 Option recompile| F[Self-inflicted RECOMPILE hint]
    B -->|5 Temp table changed| G[Temp table churn in loops]
    B -->|Other| H[Deferred / remote / cursor / partition]
    C --> I[Update stats off-peak, batch recompile]
    D --> J[Move DDL to maintenance window]
    E --> K[Standardize SET options in app]
    F --> L[Remove or scope the hint]
    G --> M[KEEP PLAN or refactor temp table use]
    H --> N[Investigate specific statement]

Metrics and signals to monitor

SignalWhy it mattersWarning sign
SQL Re-Compilations/sec as % of SQL Compilations/secDirect measure of plan instabilitySustained greater than 10%
SQL Compilations/sec as % of Batch Requests/secDistinguishes recompile problem from plan cache pollutionGreater than 10% suggests cache problem too
plan_generation_num per statementIdentifies which statements are being rebuiltGreater than 1, especially greater than 5
SOS_SCHEDULER_YIELD wait timeCPU pressure from recompilesRising signal wait ratio greater than 20% of total
RESOURCE_SEMAPHORE_QUERY_COMPILE waitsCompile-time memory pressure compounding recompilesAny sustained nonzero value
Page Life ExpectancyGeneral memory pressure indicator; under pressure, SQL Server trims both buffer pool and plan cache, causing first-time recompiles that masquerade as a plan stability problemSudden drop not explained by maintenance
Error log autostats entriesConfirms statistics auto-update as the triggerClusters that line up with recompile spikes
SQL Server build numberGates the SQL 2019 CU5 / MARS fixSQL 2019 below CU5 with MARS enabled

Fixes

Stale statistics driving auto-update recompiles

This is the most common cause and usually the healthiest one: the optimizer is doing the right thing by recompiling when stats change. The fix is to take control of when the update happens.

  • Update statistics manually during a maintenance window so the auto-update threshold is not tripped during peak load.
  • Consider AUTO_UPDATE_STATISTICS_ASYNC ON for the database so queries do not wait for the stats update; the current plan runs, and the next compilation picks up the new stats.
  • For specific volatile tables, evaluate whether the cost of the recompile is genuinely lower than the cost of a bad plan. If the recompile is the lesser evil, leave it alone.

Schema and index changes during load

Every DDL change against an object invalidates cached plans that reference it. Moving CREATE INDEX, ALTER INDEX ... REBUILD, statistics rebuilds, and schema migrations to a maintenance window eliminates the cascading recompiles. If you must do online operations, expect the recompile cost and schedule for it.

Per-session SET option drift

One of the most underdiagnosed causes. Two connections from the same application that differ in ANSI_NULL_DFLT_ON, QUOTED_IDENTIFIER, LANGUAGE, or DATEFORMAT can produce different cached plans, or force recompiles when the second connection reuses a plan compiled under different options. Standardize SET options at connection time in the data access layer. Verify with sys.dm_exec_sessions joined to your application’s connection profile.

Overused OPTION (RECOMPILE)

OPTION (RECOMPILE) generates a new plan and discards it after execution; it does not replace a cached plan. It is the right tool for genuinely parameter-sensitive queries where cached plans regress badly. It is the wrong tool as a blanket fix for “this stored procedure is sometimes slow.” Audit Query Store and sys.dm_exec_query_stats for the hint, and remove it from statements that do not need per-invocation recompilation. Reserve it for queries where parameter distribution varies by orders of magnitude.

Temp table churn

Inside loops and frequently called procedures, temp tables recompile at their own (lower) RT. Options:

  • Use KEEP PLAN on the statement to raise the temp table RT to permanent-table thresholds.
  • Replace the temp table with a table variable where the cardinality really is small and fixed. Table variables have no statistics and no RT, so they do not trigger statistics-based recompiles, but the optimizer estimates 1 row. On SQL Server 2019+, table variable deferred compilation may change this behavior, so verify the estimate you actually get. The tradeoff is only acceptable for genuinely small sets.
  • Review temp table caching conditions. Certain patterns, including data definition language changes to the temp table after creation, can prevent the internal temp table caching optimization and force recreation on each execution.
  • On SQL Server 2019 CU5 and later, the Reduce Recompilations feature does a better job of caching temp tables whose schema has not changed.

SQL 2019 specific: Reduce Recompilations and MARS

If you are on SQL Server 2019 RTM through CU4 and use MARS connections, apply CU5 or later. KB4555232 fixed blocking that occurred with the same session ID on both sides of the block.

Microsoft has not documented a general temp-table recompile regression tied to SQL Server 2019 CU5 or later; reports of one are anecdotal and environment-specific.

Do not reach for KEEPFIXED PLAN reflexively

KEEPFIXED PLAN disables recompiles due to statistics changes. The plan still recompiles on schema changes or sp_recompile. This is useful for a narrow class of stable-cardinality queries, but it can mask a real problem: the plan stays in cache long after the data distribution has shifted, and you trade a recompile problem for a parameter-sniffing problem. Use it deliberately, not as a default.

Prevention

  • Run a deployment-aware baseline. Capture SQL Re-Compilations/sec and the ratio to compilations before and after each release. Most recompile incidents track back to a specific change.
  • Standardize SET options in the data access layer. Do not let individual developers or reports set ANSI_NULLS differently.
  • Pre-size and pre-update statistics. Update stats in maintenance windows for known volatile tables rather than letting auto-update fire during peak.
  • Audit OPTION (RECOMPILE) in code review. Treat it like a NOLOCK: sometimes correct, often a band-aid.
  • Apply SQL Server cumulative updates. The SQL 2019 Reduce Recompilations bug is a clear example of a version-specific regression that bit operators who skipped CUs.
  • Track plan_generation_num over time. Persist snapshots of the top recompiling statements so you can detect drift before it becomes an incident.
  • Enable Query Store. SQL 2016 and later, on by default for new databases in SQL 2022. It gives you plan history across restarts, which is essential for post-incident forensics when cached plans have been evicted.

How Netdata helps

  • Per-second SQL Compilations/sec and SQL Re-Compilations/sec with deltas already computed, so you do not have to maintain a delta sampler yourself. The ratio is visible as a derived metric.
  • Correlation with Batch Requests/sec, CPU utilization, SOS_SCHEDULER_YIELD waits, and PLE in a single view. Recompile problems almost always announce themselves as a coordinated move across these signals, and per-second collection catches the cascade forming.
  • ML-based anomaly detection on the recompilation ratio. Steady-state workloads have a normal ratio. A drift in that ratio is flagged without you having to set static thresholds that ignore workload seasonality.
  • Deployment window correlation. If you ship DDL during a release, the resulting recompile spike lines up with deployment annotations, making root cause attribution fast.
  • Plan cache and memory pressure context. Recompiles caused by memory pressure evicting plans look different from true plan stability problems. Per-second PLE, lazy writer activity, and plan cache size let you distinguish the two.

Netdata’s Microsoft SQL Server monitoring with Netdata brings these signals together with per-second metrics and ML anomaly detection.

The Netdata solution

Microsoft SQL Server monitoring with Netdata

Netdata monitors SQL Server with per-second metrics, pre-built dashboards, and ML-powered anomaly detection. Correlate wait statistics, blocking chains, transaction-log and TempDB pressure, Page Life Expectancy, memory grants, per-file I/O stalls, and AlwaysOn send/redo queues against the rest of your stack so you catch the incidents in these runbooks before they page anyone.