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 / varnish / varnish-sess-fail ▌

Operations Guides

Varnish sess_fail: session accept failures at the front door

When MAIN.sess_fail starts incrementing in Varnish, new TCP connections are failing at the accept() call. Varnish never brings them into the worker pipeline. Clients experience connection resets, timeouts, or refused connections. Unlike sess_dropped (where the connection was accepted but the thread queue was full), sess_fail means Varnish never got far enough to process the request.

The counter is an aggregate. Since Varnish 6.1, it decomposes into sub-counters that isolate the cause: sess_fail_emfile for file descriptor exhaustion, sess_fail_econnaborted for client-side aborts, sess_fail_enomem for memory pressure, and several others. Reading only the aggregate counter is a common diagnostic mistake.

There is also a class of connection failures that never reaches Varnish counters. If the kernel’s listen backlog (net.core.somaxconn or net.ipv4.tcp_max_syn_backlog) overflows, the kernel drops SYN packets or half-open connections before Varnish’s accept thread sees them. These drops are invisible to sess_fail and to every other Varnish counter. You must check kernel state separately.

What this means

MAIN.sess_fail is defined by the Varnish documentation as: “Count of failures to accept TCP connection. This counter is the sum of the sess_fail_* counters, which give more detailed information.”

The accept thread is the entry point for all client traffic. It runs in a tight loop calling accept() on the listening socket. Each successful accept() returns a new file descriptor, which is then handed to a worker thread. When accept() returns an error instead of a file descriptor, sess_fail increments and the connection is lost.

Varnish applies backpressure when certain accept errors recur. For sess_fail_emfile, sess_fail_ebadf, and sess_fail_enomem, Varnish calls an internal pacing function (vca_pace_bad) that accumulates a delay before retrying the accept loop. The delay is controlled by two runtime parameters: acceptor_sleep_incr (default 0, meaning pacing is disabled by default) and acceptor_sleep_max (default 0.05s ceiling). This prevents a tight spin on a persistent error when pacing is enabled, but means that under sustained FD exhaustion, new connections are not just rejected once but throttled.

The harmless sub-counters, sess_fail_econnaborted and sess_fail_eintr, do not trigger pacing. sess_fail_econnaborted means the client closed the connection before Varnish finished accepting it. sess_fail_eintr means a signal interrupted the accept() call. Both are routine on any production server with real traffic.

flowchart TD
    A[New TCP connection] --> B{Kernel backlog full?}
    B -- yes --> C[Dropped by kernel\nInvisible to Varnish counters]
    B -- no --> D[Varnish accept thread]
    D --> E{accept returns?}
    E -- error --> F[sess_fail increments]
    F --> G[Decompose via sess_fail sub-counters]
    E -- success --> H{Thread available or queue space?}
    H -- no --> I[sess_dropped or req_dropped]
    H -- yes --> J[Request processed]

Common causes

CauseWhat it looks likeFirst thing to check
FD exhaustionsess_fail_emfile incrementing; FD count near RLIMIT_NOFILE/proc/$CHILD_PID/limits for Max open files
Kernel backlog overflowConnections dropped but sess_fail is zero; clients see timeouts/proc/sys/net/core/somaxconn and tcp_max_syn_backlog
Memory pressuresess_fail_enomem incrementing; system memory constraineddmesg for OOM activity; process RSS
Client aborts (harmless)sess_fail_econnaborted incrementing at low rateNormal on production servers; no action needed
Other accept errorssess_fail_other incrementingvarnishlog -g raw -i SessError for the errno string
Listen socket invalidsess_fail_ebadf incrementingShould never happen; indicates bug or corruption

Quick checks

# Decompose sess_fail into sub-counters
varnishstat -1 -f MAIN.sess_fail -f 'MAIN.sess_fail_*'

# Child process FD usage (newest varnishd process is the child)
CHILD_PID=$(pgrep -n varnishd)
ls /proc/$CHILD_PID/fd | wc -l
cat /proc/$CHILD_PID/limits | grep 'Max open files'

# Kernel listen backlog limits
cat /proc/sys/net/core/somaxconn
cat /proc/sys/net/ipv4/tcp_max_syn_backlog

# Varnish listen_depth parameter
varnishadm param.show listen_depth

# Thread queue and drops (related but distinct from sess_fail)
varnishstat -1 -f MAIN.thread_queue_len -f MAIN.sess_dropped -f MAIN.req_dropped

# Kernel-level socket overflows (invisible to Varnish)
nstat -az TcpExtListenOverflows TcpExtListenDrops

# Inspect sess_fail_other errors with errno strings
varnishlog -g raw -i SessError

# Total sessions accepted vs failed
varnishstat -1 -f MAIN.sess_conn -f MAIN.sess_fail

How to diagnose it

  1. Read the sub-counters, not just the aggregate. Run varnishstat -1 -f 'MAIN.sess_fail_*' and identify which sub-counter is incrementing.

  2. If sess_fail_emfile is the culprit, check the child process FD limit and current usage:

    CHILD_PID=$(pgrep -n varnishd)
    echo "FDs in use: $(ls /proc/$CHILD_PID/fd | wc -l)"
    cat /proc/$CHILD_PID/limits | grep 'Max open files'
    

    If usage is near the limit, the problem is FD exhaustion. Both client connections and backend connections consume FDs. Check the backend connection reuse ratio to rule out a connection leak.

  3. If clients report connection failures but sess_fail is zero or only shows harmless sub-counters (sess_fail_econnaborted, sess_fail_eintr), the drops may be happening at the kernel level. Check:

    cat /proc/sys/net/core/somaxconn
    cat /proc/sys/net/ipv4/tcp_max_syn_backlog
    nstat -az TcpExtListenOverflows TcpExtListenDrops
    

    If TcpExtListenOverflows is incrementing, the kernel is dropping connections because its backlog queue is full. Varnish never sees these connections, and no Varnish counter will reflect the loss.

  4. If sess_fail_enomem is incrementing, the system is under memory pressure. The Varnish documentation describes this as “most likely insufficient socket buffer memory.” Check dmesg for OOM killer activity and monitor process RSS versus available system memory.

  5. If sess_fail_other is incrementing, capture the specific error:

    varnishlog -g raw -i SessError
    

    The SessError log tag shows the errno string, which identifies the exact system call failure.

  6. Distinguish from thread pool drops. If clients are experiencing failures but sess_fail is zero, check sess_dropped and req_dropped instead. Those counters track sessions that were accepted but dropped because the thread queue (thread_queue_limit, default 20) was full. The failure mode, the counters, and the fix are all different.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
MAIN.sess_failSummary of all accept() failuresAny sustained nonzero rate
MAIN.sess_fail_emfileConfirms FD exhaustion as the causeAny nonzero value
MAIN.sess_fail_enomemSocket buffer memory pressureAny nonzero value
MAIN.sess_fail_otherUnclassified accept errors needing log investigationAny nonzero value
MAIN.sess_fail_econnabortedClient aborted before accept completedNormal at low rates; investigate spikes
/proc/$PID/fd count vs FD limitApproaching FD ceilingUsage above 80% of limit
net.core.somaxconnKernel listen queue depthValue lower than Varnish listen_depth (default 1024)
TcpExtListenOverflows (nstat)Kernel dropping connections before Varnish sees themAny increment
MAIN.sess_conn vs MAIN.sess_failRatio of successful to failed acceptsIncreasing failure ratio
MAIN.sess_dropped / MAIN.req_droppedThread queue full (different failure from sess_fail)Any sustained nonzero rate

Fixes

File descriptor exhaustion (sess_fail_emfile)

The fix is to raise the FD limit for the Varnish child process. The FD limit is governed by RLIMIT_NOFILE, set via ulimit -n or systemd LimitNOFILE.

Check the current limit:

cat /proc/$CHILD_PID/limits | grep 'Max open files'

If the limit is low (for example 1024 or 4096 on older configurations), raise it. The method depends on how Varnish is started:

  • systemd: Set LimitNOFILE=131072 (or higher) in the service unit file, then restart Varnish. Restarting flushes the cache and resets in-flight connections.
  • SysV init or custom script: Add ulimit -n 131072 to the init script before the Varnish start command.

After restarting, verify the new limit took effect by reading /proc/$CHILD_PID/limits.

If FD usage is high even with a generous limit, investigate a connection leak. Both client keepalive connections and backend connections consume FDs. A high backend request rate with low connection reuse can burn through FDs quickly. Check MAIN.backend_conn versus MAIN.backend_reuse. If the reuse ratio is low, every backend fetch opens a new TCP connection, consuming an FD that may not be released promptly.

Kernel backlog overflow (invisible to Varnish)

If connections are being dropped at the kernel level, Varnish counters will not show it. The kernel’s listen queue depth is controlled by two parameters:

  • net.core.somaxconn: the maximum backlog for all listening sockets. Default was 128 on kernels before 5.4 and 4096 on Linux 5.4 and later.
  • net.ipv4.tcp_max_syn_backlog: the maximum number of remembered connection requests in SYN-RECEIVED state.

Varnish’s listen_depth parameter defaults to 1024 connections. The kernel’s somaxconn value caps the effective backlog. If somaxconn is lower than listen_depth, the kernel value wins. A server running an older kernel with the default somaxconn=128 effectively limits Varnish to a 128-connection backlog regardless of the Varnish configuration.

Fix:

# These take effect immediately but are not persistent across reboot
sysctl -w net.core.somaxconn=4096
sysctl -w net.ipv4.tcp_max_syn_backlog=8192

Persist these in /etc/sysctl.d/ so they survive reboot. Verify that the new somaxconn is at least as high as Varnish’s listen_depth.

Changing somaxconn does not affect already-open listening sockets. Varnish must be restarted for the new value to take effect on its listen socket.

Memory pressure (sess_fail_enomem)

This counter is described in the Varnish documentation as “most likely insufficient socket buffer memory” and is annotated “should never happen.” When it does appear, it points to system-level memory exhaustion. Check:

  • dmesg for OOM killer activity targeting the Varnish process or other system processes
  • Process RSS versus available system memory
  • Whether transient storage (SMA.Transient.g_bytes) is consuming unbounded memory through pass or pipe traffic

If Varnish itself is consuming too much memory through transient storage growth, investigate the VCL pass rate and consider sizing transient storage explicitly with -s Transient=malloc,1G (available in Varnish 6.1 and later).

Other accept errors (sess_fail_other)

Run varnishlog -g raw -i SessError to capture the errno string. This shows the specific error code from the failed accept() call. Act based on the errno value. If the error is persistent and the cause is unclear from the errno, it may indicate a kernel-level socket issue or a Varnish bug worth reporting upstream.

Distinguish from thread queue drops

If the real problem is sess_dropped or req_dropped (sessions accepted but dropped because the thread queue is full), the fix is different. The session was successfully accepted, so sess_fail is not involved. The fix involves increasing thread_pool_max, reducing backend response latency so threads are released faster, or raising thread_queue_limit. These are concurrency capacity problems, not accept() resource problems.

Prevention

  • Monitor the sub-counters independently. Alert on sess_fail_emfile and sess_fail_enomem specifically, not just the aggregate. A nonzero sess_fail_econnaborted rate is normal background noise; a nonzero sess_fail_emfile rate is an actionable FD exhaustion condition.
  • Set FD limits generously. A modern Varnish server handling high traffic should have LimitNOFILE of at least 131072. Both client and backend connections consume FDs, and idle keepalive connections can accumulate.
  • Verify kernel backlog after kernel upgrades or new deployments. The somaxconn default changed from 128 to 4096 in Linux 5.4, but custom sysctl configurations or containerized environments may override this with lower values. Ensure somaxconn is at least as high as Varnish’s listen_depth.
  • Monitor TcpExtListenOverflows via nstat. This is the only signal that catches kernel-level connection drops invisible to Varnish counters.
  • Track backend connection reuse. Low reuse means more open FDs. If the ratio backend_reuse / (backend_reuse + backend_conn) is consistently low, investigate backend keepalive configuration and backend_idle_timeout.
  • Alert on sess_fail and sess_dropped separately. Both cause client-visible failures but require different fixes. sess_fail is an accept() resource problem (FDs, memory, kernel backlog). sess_dropped is a thread pool capacity problem.

How Netdata helps

Netdata correlates the signals needed to diagnose sess_fail without manual command-line triage:

  • Per-second sess_fail_* sub-counters show the exact failure cause. Rate views distinguish a brief spike from a sustained problem.
  • Process file descriptor monitoring correlates FD usage with sess_fail_emfile directly, so the cause is visible without checking /proc by hand.
  • Kernel TCP metrics (TcpExtListenOverflows, TcpExtListenDrops) catch the class of drops Varnish cannot see. Correlating kernel overflows with Varnish counters separates a kernel backlog problem from a Varnish resource problem.
  • Thread pool metrics (thread_queue_len, sess_dropped, req_dropped) distinguish accept failures from thread queue drops, which require different fixes.
  • Backend connection counters (backend_conn, backend_reuse, backend_recycle) reveal whether FD exhaustion is driven by poor backend connection reuse.