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-vlf-count-high

Operations Guides

SQL Server high VLF count: transaction log fragmentation that slows recovery

A database restarts and takes 45 minutes to come back ONLINE. An AlwaysOn failover completes in seconds, but the new primary sits in RECOVERING for an hour while the redo queue drains. The error log shows nothing obviously wrong: no 823 or 824, no corruption, no missing files. CPU and I/O during recovery look modest, just stretched out. Users escalate.

The hidden variable is often the Virtual Log File (VLF) count. SQL Server divides every database’s transaction log into VLFs, internal segments that the engine walks during crash recovery, log backup, and AG redo. Hundreds of small autogrowth events accumulated over months fragment the log into thousands or tens of thousands of these segments. Each one is a header to read, a range to verify, a step in the recovery scan.

This is a silent tax. High VLF count produces no error, no wait type, and no performance counter. It surfaces only when it costs the most: during the RECOVERING window after a restart or failover. By the time you notice, you have usually already failed over once too slowly.

For how the transaction log is reused and why it grows, see the SQL Server mental model guide. This article covers the VLF-specific failure mode: detection, interpretation, and consolidation.

What this means

The transaction log is not a single contiguous stream at the engine level. SQL Server slices it into VLFs. Each VLF has its own header, its own active or inactive state, and its own position in the log scan order. Recovery after a restart walks every VLF to locate the last checkpoint, identify active transactions, and roll forward or roll back. AG redo on secondaries walks VLFs as it applies log blocks. Log backups scan VLF headers to determine what changed since the last backup.

When the count is low (dozens to a few hundred), these scans are trivial. When the count climbs into the thousands or tens of thousands, per-VLF bookkeeping cost dominates. Restart recovery stretches from seconds to many minutes. Log backup duration grows. AG secondary redo falls behind, extending failover RTO and widening the redo queue window where a forced failover can lose data.

The growth pattern is almost always the same. A database with autogrowth enabled in small increments accumulates VLFs each time the log grows. SQL Server creates multiple VLFs per growth event. Hundreds of growth events over years produce thousands of VLFs. The log may be only a few GB on disk but internally fragmented into 8,000 segments.

VLF countImpactAction
Under 1,000Manageable; recovery normalBaseline and trend
1,000 to 10,000Recovery and log backups visibly slowerPlan consolidation
Above 10,000Recovery will be significantly slowRemediate before the next restart or failover

These are operational thresholds, not Microsoft-specified hard limits.

Common causes

CauseWhat it looks likeFirst thing to check
Small autogrowth incrementsLog file has grown hundreds of times in small stepssys.dm_db_log_info count plus default trace autogrowth history
Growth setting never re-tunedLog grew steadily over time with the original growth settingFile growth settings via sys.master_files
Long-lived database, never remediatedOlder production database that never had VLF maintenanceVLF count per database across the whole instance
Shrink and regrow cycleLog grew large, was shrunk, then grew backError log and default trace for shrink and growth pairs

Quick checks

All read-only and safe.

-- VLF count for one database (SQL Server 2016 SP2+)
SELECT COUNT(*) AS vlf_count
FROM sys.dm_db_log_info(DB_ID('YourDatabase'));
-- VLF count for all user databases (SQL Server 2016 SP2+)
SELECT
    d.name AS database_name,
    COUNT(*) AS vlf_count
FROM sys.databases d
CROSS APPLY sys.dm_db_log_info(d.database_id)
WHERE d.database_id > 4
GROUP BY d.name
ORDER BY vlf_count DESC;
-- Pre-2016 SP2: use DBCC LOGINFO in the database context.
-- Each row returned is one VLF.
USE YourDatabase;
DBCC LOGINFO;
-- Permissions note:
--   sys.dm_db_log_info requires VIEW SERVER STATE (per the official reference)
--   on SQL Server 2016 SP2+ before 2022, and VIEW DATABASE PERFORMANCE STATE on
--   SQL Server 2022 and later.
<!-- verified: sys.dm_db_log_info permission is VIEW SERVER STATE (pre-2022), VIEW DATABASE PERFORMANCE STATE (2022+) -->
--   DBCC LOGINFO requires sysadmin.
-- Review autogrowth configuration for log files
-- growth is in 8KB pages when is_percent_growth = 0, percentage when is_percent_growth = 1
SELECT
    d.name AS database_name,
    mf.name AS logical_file_name,
    mf.size * 8 / 1024 AS current_size_mb,
    mf.growth AS growth_raw,
    mf.is_percent_growth
FROM sys.master_files mf
JOIN sys.databases d ON mf.database_id = d.database_id
WHERE mf.type_desc = 'LOG'
  AND d.database_id > 4
ORDER BY d.name;
-- Default trace: log file autogrowth events (event class 93)
-- Useful to confirm the fragmentation path from many small growth events.
DECLARE @trace_path NVARCHAR(500);
SELECT @trace_path = [path] FROM sys.traces WHERE is_default = 1;

SELECT
    DatabaseName,
    FileName,
    Duration AS duration_ms,
    IntegerData * 8 / 1024 AS growth_mb,
    StartTime
FROM sys.fn_trace_gettable(@trace_path, DEFAULT)
WHERE EventClass = 93
ORDER BY StartTime DESC;
<!-- verified: EventClass 93 = Log File Auto Grow; IntegerData = number of 8 KB pages by which the file increased (official event class reference) -->
-- Confirm whether the log can be truncated before any shrink attempt
SELECT name, recovery_model_desc, log_reuse_wait_desc
FROM sys.databases
WHERE database_id > 4;

How to diagnose it

  1. Inventory VLF counts across all user databases. Use the all-databases query above. Anything above 1,000 goes on the at-risk list; anything above 10,000 is urgent.
  2. Confirm the growth history. The default trace query above captures autogrowth events. A high VLF count with many small autogrowth entries confirms the fragmentation path.
  3. Check log_reuse_wait_desc for each candidate database. The log must be truncate-able (ideally NOTHING) before a shrink can reclaim VLFs. If the wait is LOG_BACKUP, take a log backup first. If it is ACTIVE_TRANSACTION, find and address the open transaction before proceeding.
  4. Estimate recovery impact. There is no authoritative per-VLF recovery time formula. The operational signal is the last RECOVERING duration. Compare databases of similar size: the one with the high VLF count is the one that took longer. Baseline each database’s recovery time so you can detect regression.
  5. Correlate with AG redo performance. On secondary replicas, a high-VLF database that is also the redo bottleneck is a strong signal. The redo queue drains slowly even when secondary CPU and I/O look healthy.
flowchart TD
    A[Restart or failover] --> B[Database enters RECOVERING]
    B --> C{VLF count}
    C -->|Low: dozens to hundreds| D[Recovery in seconds to minutes]
    C -->|High: thousands| E[Recovery scan walks every VLF header]
    E --> F[Recovery takes many minutes to hours]
    F --> G[Extended downtime, AG redo backlog grows]
    G --> H[Forced failover may lose data]

Metrics and signals to monitor

SignalWhy it mattersWarning sign
VLF count per databaseDirect measure of fragmentationSustained climb above 1,000, or already above 10,000
Log autogrowth eventsEach growth event adds VLFsFrequent small autogrowth entries in default trace
Last RECOVERING durationReal-world impact of VLF countRecovery time growing over successive restarts
log_reuse_wait_descDetermines whether shrink can reclaim VLFsAnything other than NOTHING blocks VLF reclamation
AG redo queue sizeVLF-heavy databases slow secondary redoRedo queue growing on a high-VLF database with healthy secondary resources
Log backup durationEach backup scans VLF headersBackup time rising without proportional log size growth

Fixes

Consolidating VLFs requires shrinking the log to reclaim inactive VLFs, then regrowing it in a few large, controlled increments. This is disruptive. The shrink can block log activity for that database, and each regrowth step is itself an internal growth event. Schedule it in a maintenance window.

Before you start

  • Take a fresh log backup on the database if it is in full or bulk-logged recovery. The log must be truncate-able before the shrink can reclaim VLFs.
  • Confirm log_reuse_wait_desc returns NOTHING. If not, address the underlying cause first. A shrink on a non-truncate-able log reclaims nothing useful.
  • Confirm you are in a maintenance window. The database remains online, but log activity can be blocked during shrink and during each regrowth step.
  • If the database is in an AlwaysOn AG, expect secondaries to mirror the file size changes. Plan around replication.

Procedure

-- 1. Shrink the log file to reclaim inactive VLFs.
--    Replace logical_file_name with the log file name from sys.master_files.
--    Target a small size; we will regrow deliberately.
USE YourDatabase;
DBCC SHRINKFILE(logical_file_name, 64);
-- Verify the result. Shrink may not reduce VLFs if VLFs are still active.
-- If the count did not drop, take another log backup and retry.
SELECT COUNT(*) AS vlf_count_after_shrink
FROM sys.dm_db_log_info(DB_ID());
-- 2. Regrow the log in a few large fixed-size increments.
--    Each growth event creates a small number of VLFs.
--    Never use percent growth here.
ALTER DATABASE YourDatabase
MODIFY FILE (NAME = logical_file_name, SIZE = 8000MB);

ALTER DATABASE YourDatabase
MODIFY FILE (NAME = logical_file_name, SIZE = 16000MB);

ALTER DATABASE YourDatabase
MODIFY FILE (NAME = logical_file_name, SIZE = 24000MB);
-- Continue until you reach the target working size.
-- 3. Set autogrowth to one large fixed increment as a safety net.
--    Pre-sizing should handle normal load. Autogrowth is the last resort.
ALTER DATABASE YourDatabase
MODIFY FILE (NAME = logical_file_name, FILEGROWTH = 1000MB);
-- 4. Verify the VLF count dropped to a reasonable number.
--    Expect tens to low hundreds after consolidation.
SELECT COUNT(*) AS vlf_count
FROM sys.dm_db_log_info(DB_ID('YourDatabase'));

Why 8000MB increments

The traditional guidance is to regrow the log in fixed chunks of 8000MB rather than exact 4GB multiples. This avoids a historical VLF-sizing bug present in SQL Server versions prior to SQL Server 2012 SP1, where growth in exact 4GB multiples could produce incorrect VLF layouts. SQL Server 2012 SP1 and later fixed that bug, but 8000MB remains the conservative and portable choice.

The 4 GB-multiple VLF-sizing bug was fixed in SQL Server 2012 SP1; no SQL Server release supported in 2026 (2016 and later) is affected, but 8,000 MB remains the conservative, portable choice.

Tradeoffs

  • Shrink can block log activity. Log writes for the database may be blocked during the operation. Do not run it during peak load.
  • You must regrow to a sensible size. If you shrink to 64MB and leave it there, the log will autogrow back under load, recreating the problem or making it worse with small increments. Always pair shrink with deliberate regrow and a large fixed autogrowth.
  • Do not leave autogrowth at a small fixed value or at percent. Small fixed growth creates the VLF problem you just fixed. Percent growth is unpredictable at scale.
  • Do not make this a recurring task. Done correctly, with proper pre-sizing and a large fixed autogrowth, the consolidation is a one-time event. If VLF counts climb again, your autogrowth configuration is wrong, not the database.

Prevention

  • Pre-size the log file. Size it for peak working volume between log backups (full recovery) or between checkpoints (simple recovery). The log should not autogrow during normal operations.
  • Use a large fixed autogrowth increment. A single large increment produces a small number of VLFs per growth event. Avoid percent growth.
  • Alert on autogrowth events. Any production autogrowth is worth attention. Log autogrowth blocks log writes during initialization and adds VLFs. Treat each event as a capacity signal, not a routine occurrence.
  • Trend VLF count per database. A VLF count that is climbing means autogrowth is fragmenting the log. Catch it before the next unplanned restart exposes it.
  • Baseline recovery time. Track how long each database spends in RECOVERING after a restart or failover. A rising baseline is the operational signal that VLF remediation is overdue.
  • Check new databases. Application installers often create databases with default autogrowth settings. Correct the log sizing before the database accumulates history.

How Netdata helps

  • Per-second metrics on log file size and percent used let you see autogrowth events as they happen, not after the VLF count has already climbed into the thousands.
  • Correlate autogrowth events with recovery time. When a database’s RECOVERING window stretches, Netdata’s history shows the autogrowth pattern that produced the fragmentation. Netdata’s SQL Server (mssql) integration does not currently expose a database recovery-duration metric; the RECOVERING window itself is visible in the SQL Server error log or a custom query.
  • Trend log usage and growth rate so you can pre-size logs proactively instead of reacting to autogrowth.
  • Surface log_reuse_wait_desc alongside disk space and log usage. Knowing whether a log can be truncated is the precondition for any VLF consolidation work. Netdata’s SQL Server (mssql) integration does not currently expose log_reuse_wait_desc as a chart; query sys.databases alongside the Netdata views.
  • AG redo queue and send queue metrics reveal when a high-VLF database is the secondary bottleneck, even before a failover exposes it.

Netdata’s Microsoft SQL Server monitoring brings these signals together with per-second metrics and 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.