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-fetch-failed ▌

Operations Guides

Varnish fetch_failed: backend connected but the fetch broke

The MAIN.fetch_failed counter is climbing in varnishstat. Clients are seeing intermittent 503 responses. Backend health probes report healthy, and MAIN.backend_fail is zero. The TCP connection to the backend succeeded, but the fetch itself broke.

The problem is not connectivity. It is what happens after: malformed response headers, a truncated body, broken chunked encoding, a failed gzip decompression, or a timeout between bytes. Varnish established the connection, began the HTTP transaction, and something failed before a complete response was received.

Each fetch_failed is a potential client-facing 503 unless grace or stale content covers the gap. At low rates, grace masks the problem. At higher rates, users see errors and cache effectiveness drops because failed fetches produce nothing to store.

What this means

MAIN.fetch_failed counts backend fetch operations that failed after the TCP connection was established. This is distinct from MAIN.backend_fail, which counts connection-level failures (TCP refused, timeout during connect, network unreachable). With fetch_failed, the TCP handshake completed. The failure happened during the HTTP response phase.

Related counters that help isolate the cause:

  • MAIN.fetch_no_thread (Varnish up to 7.1): fetch failed because no worker thread was available to dispatch it. Thread starvation affecting backend fetches specifically.
  • MAIN.bgfetch_no_thread: the same counter, renamed in Varnish 7.2. A fetch dispatch failed due to thread starvation; this includes background grace refreshes of stale objects.

The diagnostic key is the FetchError tag in varnishlog. This tag carries a human-readable string describing the specific failure. Without it, fetch_failed tells you “something broke” but not what. The counters fetch_eof, fetch_length, and fetch_chunked track successful body transfers by framing type, giving you a baseline for comparison. fetch_bad counts responses with bad or unknown framing.

A ratio of fetch_failed / backend_req > 0.01 (more than 1% of backend fetches failing) is significant. At that rate, users are regularly hitting errors unless grace covers them.

flowchart TD
    A["Varnish fetches from backend"] --> B{TCP connect succeeded?}
    B -- No --> C["backend_fail (connection-level)"]
    B -- Yes --> D{HTTP response complete and valid?}
    D -- No --> E["fetch_failed (transaction-level)"]
    E --> F["FetchError in varnishlog gives the reason"]
    D -- Yes --> G[Object cached and served]
    F --> H{Grace or stale available?}
    H -- Yes --> I[Stale content served to client]
    H -- No --> J[Client receives 503]

Common causes

CauseWhat it looks likeFirst thing to check
Backend premature closeFetchError references premature close or EOF before complete responseBackend keepalive settings, connection recycling on the origin
Content-Length mismatchFetchError references insufficient bytes or body length mismatchBackend gzip or mod_deflate interaction with dynamic content
HTTP header limits exceededFetchError “http format error” or “overflow”http_max_hdr, http_resp_hdr_len, http_resp_size parameters
Gzip/gunzip failureFetchError references gzip, gunzip, or TestGunzipberesp.do_gzip / beresp.do_gunzip in vcl_backend_response
Chunked encoding errorFetchError references chunked framingBackend response framing, proxy layers between Varnish and origin
Thread starvationfetch_no_thread incrementing alongside fetch_failedThread pool saturation metrics
Timeout between bytesFetchError references timeout after headers receivedbetween_bytes_timeout parameter

Quick checks

# Check the fetch_failed rate and related counters
# MAIN.fetch_no_thread: Varnish up to 7.1; renamed MAIN.bgfetch_no_thread in 7.2+
varnishstat -1 -f MAIN.fetch_failed -f MAIN.fetch_no_thread   # Varnish <= 7.1
varnishstat -1 -f MAIN.fetch_failed -f MAIN.bgfetch_no_thread # Varnish >= 7.2

# Check the ratio denominator (backend requests)
varnishstat -1 -f MAIN.backend_req

# Get the specific FetchError strings from recent transactions
varnishlog -g request -q 'FetchError'

# Filter for transactions hitting vcl_backend_error
varnishlog -g request -q "VCL_call eq 'BACKEND_ERROR'"

# Check for 503s being returned to clients
varnishlog -q 'RespStatus == 503'

# Check backend workspace overflow (can cause fetch failures)
varnishstat -1 -f 'MAIN.ws_*_overflow'

# Check backend connection health and reuse ratios
varnishstat -1 -f MAIN.backend_fail -f MAIN.backend_busy -f MAIN.backend_conn -f MAIN.backend_reuse

# Check synthetic response rate (Varnish-generated error pages)
varnishstat -1 -f MAIN.s_synth

How to diagnose it

  1. Confirm the failure rate. Take two readings of fetch_failed and backend_req 10 seconds apart. Compute delta(fetch_failed) / delta(backend_req). If the ratio is above 0.01, you have a real problem, not noise.

  2. Capture the FetchError string. Run varnishlog -g request -q 'FetchError' during the failure window. The FetchError tag appears in backend fetch transactions and names the specific failure. Collect several samples because different URLs or backends may produce different errors.

  3. Check for thread starvation. If fetch_no_thread is incrementing alongside fetch_failed (bgfetch_no_thread on 7.2+), the root cause is thread pool exhaustion, not a backend protocol issue. Check MAIN.threads, MAIN.thread_queue_len, and MAIN.threads_limited. See Varnish thread pool exhaustion for the full diagnostic path.

  4. Correlate with backend connection behavior. A backend that aggressively closes keepalive connections can cause premature close errors. Check the connection reuse ratio: backend_reuse / (backend_reuse + backend_conn). Low reuse with high fetch_failed suggests the backend is resetting connections that Varnish expected to be reusable.

  5. Check workspace overflow. If ws_backend_overflow is incrementing, the backend response headers are exceeding workspace_backend. This is a configuration issue, not a backend bug.

  6. Isolate by backend. If you have multiple backends in a director, check per-backend health with varnishadm backend.list -p. A single misbehaving backend can produce all the fetch failures while others are clean.

  7. Check for recent VCL or backend changes. A new beresp.do_gunzip directive, a backend deploy that changed response headers, or a proxy layer that strips or alters Content-Length can all trigger fetch failures that were not present before.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
MAIN.fetch_failed rateCore counter for this failure modeSustained nonzero rate, especially fetch_failed / backend_req > 0.01
MAIN.fetch_no_thread (≤7.1)Thread starvation preventing fetch dispatchAny nonzero rate
MAIN.bgfetch_no_thread (7.2+, renamed from fetch_no_thread)Fetch dispatches failing due to thread starvation, including background grace refreshesAny nonzero rate
FetchError tag in varnishlogSpecific failure reason, the diagnostic keyAny new or recurring error string
MAIN.backend_failConnection-level failures, distinct from fetch failuresIf nonzero alongside fetch_failed, connectivity and transaction issues coexist
MAIN.ws_backend_overflowBackend workspace exhaustion causing fetch failuresAny nonzero rate
MAIN.s_synthSynthetic responses, typically 503s from failed fetchesSpike correlating with fetch_failed
MAIN.backend_reuse ratioLow reuse indicates connection churnbackend_reuse / (backend_reuse + backend_conn) < 0.5 with rising fetch_failed
MAIN.cache_hit_graceGrace serving is masking the backend problemElevated rate while fetch_failed is nonzero

Fixes

Backend premature close

The backend closed the TCP connection before sending a complete HTTP response. This happens when the backend terminates keepalive connections aggressively, or when a proxy layer between Varnish and the origin times out.

Check the backend_idle_timeout parameter in Varnish (default 60 seconds). If the backend closes idle connections faster than this value, Varnish will attempt to reuse a connection that the backend has already closed, resulting in a premature close. Reduce backend_idle_timeout to be shorter than the backend’s own keepalive timeout.

If the backend itself is closing connections mid-response due to resource pressure (memory limits, worker timeouts), that is a backend problem, not a Varnish tuning problem. Check backend logs for worker process exits or memory limits.

Content-Length mismatch

The backend advertises a Content-Length header claiming N bytes but sends fewer (or more). This is common with backend gzip compression modules that compress the body after computing Content-Length, or with FastCGI handlers that miscalculate body length for compressed responses.

If the backend is applying gzip compression and sending a Content-Length that does not match the compressed body, consider disabling gzip at the backend and letting Varnish handle compression instead via set beresp.do_gzip = true; in vcl_backend_response. Varnish’s compression is deterministic and will not produce length mismatches.

Alternatively, return (pipe) in vcl_recv for the affected request paths bypasses Varnish’s fetch logic entirely, passing the response through without parsing. This avoids the fetch failure but also means the response is not cached.

HTTP header limits exceeded

Varnish enforces limits on response header count and size. The defaults are:

  • http_max_hdr: 64 headers
  • http_resp_hdr_len: 8 KB per header
  • http_resp_size: 32 KB total response header size

Exceeding these produces FetchError http format error or FetchError overflow. If the backend legitimately sends many headers (deep proxy chains, extensive tracking headers), increase the relevant parameter via varnishadm param.set. Each increase costs workspace memory per request, so raise only what you need.

Check MAIN.losthdr as well. If headers are being dropped before the fetch fails, losthdr will be nonzero.

Gzip/gunzip failure

If VCL instructs Varnish to decompress (beresp.do_gunzip = true) or compress (beresp.do_gzip = true) a backend response, and the response body is corrupt or truncated, the compression or decompression will fail mid-stream. This is common when the backend sends Content-Encoding: gzip with a zero-byte or incomplete body.

Stop the gzip/gunzip processing for the affected responses. If the backend already sends compressed content, let it pass through without beresp.do_gunzip. If Varnish is compressing (beresp.do_gzip) and the backend body is incomplete, the underlying issue is a Content-Length mismatch or premature close, not the compression itself.

Thread starvation

If fetch_no_thread is incrementing (bgfetch_no_thread on 7.2+), the thread pool cannot dispatch backend fetches. This is a thread pool sizing problem, not a backend protocol problem. Increase thread_pool_max or reduce the load holding threads. See Varnish thread pool tuning for the parameter guide and Varnish thread pool exhaustion for the diagnostic flow.

Timeout between bytes

If the backend sends response headers promptly but then stalls during body transfer, between_bytes_timeout fires and the fetch fails. Backends with slow streaming responses (large database exports, slow file generation) can trip it legitimately.

Increase between_bytes_timeout if the backend legitimately produces responses with long pauses between bytes. But investigate the backend first: a backend that stalls mid-body is usually a sign of resource contention, not a timeout tuning problem.

Prevention

Configure grace. Without beresp.grace (or the grace parameter), every fetch_failed immediately becomes a client-visible 503. With grace, Varnish serves a stale cached object while the fetch fails, and the user sees nothing wrong. Grace is the single most effective mitigation for intermittent fetch failures. The tradeoff is serving potentially stale content for the grace duration.

Monitor the fetch_failed to backend_req ratio. A sustained ratio above 0.01 is the threshold for investigation. Track this as a trend, not just an alert. Gradually rising ratios often indicate backend degradation before probes catch it.

Run a persistent log consumer. The FetchError string is the diagnostic key, but it only exists in the shared memory log. If no varnishlog or varnishncsa process is writing to persistent storage, the error details are overwritten and lost. Always run at least one persistent log consumer.

Audit backend compression. If the backend applies gzip and sends Content-Length headers, verify the lengths are accurate. The most common pattern is a backend that computes Content-Length before compression, then compresses the body, producing a mismatch.

Check backend keepalive compatibility. If the backend or any proxy layer between Varnish and the origin closes idle connections faster than Varnish’s backend_idle_timeout, Varnish will reuse dead connections and see premature close errors. Align the timeout values.

How Netdata helps

  • The varnish.fetch_failed metric from the Netdata Varnish collector provides per-second visibility into the fetch failure rate without manual varnishstat polling. Correlate it with varnish.backend_req for the failure ratio.
  • Cross-referencing fetch_failed with fetch_no_thread and thread pool saturation metrics in a single dashboard distinguishes backend protocol errors from thread starvation.
  • The varnish.s_synth metric tracks synthetic error responses. When it spikes alongside fetch_failed, the failures are reaching clients as 503s, not masked by grace.
  • varnish.backend_fail and varnish.backend_busy plotted alongside fetch_failed help determine whether the problem is connectivity-level, capacity-level, or transaction-level.
  • Workspace overflow counters (ws_backend_overflow, ws_client_overflow) alongside fetch failures reveal whether backend response headers are exceeding workspace allocation.
  • Netdata anomaly detection on the fetch_failed rate can surface a gradual increase before it crosses the 0.01 ratio threshold.