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

Operations Guides

Varnish Error 503 Backend fetch failed: what the error page actually means

The “Error 503 Backend fetch failed” page is the default synthetic error Varnish serves when it cannot get a usable response from any backend. It displays “Guru Meditation” and an XID identifier, but nothing about the actual failure cause. The error page is a symptom, not a diagnosis.

The root cause is always in the FetchError tag in the shared memory log. Every Varnish-synthesised 503 is preceded by a backend transaction that logged a specific FetchError string: a timeout, a premature close, a protocol violation, or a health-probe failure that left no healthy backend to try. Reading that string is the single most important diagnostic step, and the one most operators skip.

What this means

Varnish generates the “Error 503 Backend fetch failed” page in the vcl_backend_error subroutine. This runs when a backend fetch fails in a way Varnish cannot recover from: the connection was refused, the response timed out, the HTTP was malformed, or no healthy backend existed to receive the request. The built-in VCL produces the HTML page with the title and Guru Meditation heading, then delivers it to the client as a synthetic 503 response.

This is fundamentally different from a backend-originated 503. If the backend itself returns HTTP 503 as a complete, valid response, Varnish does not generate the synthetic error page. It passes the backend’s response through to the client (and may cache it, depending on VCL). The FetchError tag only appears for Varnish-synthesised 503s where the fetch failed at the communication layer.

How grace interacts with the 503 path. When a backend fetch fails and a stale object exists in cache, Varnish serves the stale object first if grace is configured in VCL. The client gets a 200 OK with valid but aged content. The 503 only appears once grace expires and no stale object remains. This means the 503 rate you observe may lag the actual backend failure by the duration of the grace window. MAIN.cache_hit_grace (available in every supported release, not just 7.x) tracks hits served from grace. A spike there with low or zero 503s means Varnish is masking a backend problem that will surface when grace runs out.

flowchart TD
    A["Client receives 503"] --> B{"FetchError in backend log?"}
    B -->|Yes| C["Varnish-synthesised 503"]
    B -->|No| D["Backend-originated 503\n- investigate origin"]
    C --> E{"FetchError string?"}
    E -->|unhealthy / no backend| F["All backends sick\n- check probes"]
    E -->|timeout / EOF / HTC idle| G["Backend slow or\ndropping connections"]
    E -->|http format error| H["Malformed HTTP\nfrom backend"]
    E -->|busy| I["max_connections\nreached"]
    E -->|overflow / workspace| J["Workspace\nexhausted"]

Common causes

CauseWhat it looks likeFirst thing to check
All backends sickFetchError: backend ...: unhealthy or Director returned no backendvarnishadm backend.list -p
Backend timeout after connectFetchError: first byte timeout (6.6+; HTC idle on 6.0 LTS)Backend response time, first_byte_timeout
Backend premature closeFetchError: HTC eof (4.x logged http first read error: EOF)Backend stability, connection handling
Malformed HTTP from backendFetchError: http format errorBackend response headers, proxy chain
max_connections reachedFetchError: backend ...: busyMAIN.backend_busy, backend connection limits
Workspace exhaustedFetchError: overflow or out of workspaceMAIN.ws_backend_overflow, MAIN.losthdr
No thread for backend fetchMAIN.fetch_no_thread incrementingThread pool saturation, MAIN.threads

Quick checks

Run these read-only commands to narrow the problem immediately.

# Get the specific FetchError string - the single most important check
varnishlog -b -q 'FetchError'

# Confirm whether the 503 is Varnish-synthesised (look for FetchError)
# or backend-originated (no FetchError, backend returned 503)
varnishlog -q 'RespStatus == 503' -g request

# Check backend health with probe details
varnishadm backend.list -p

# Check fetch failure, backend health, and busy counters
varnishstat -1 -f MAIN.fetch_failed -f MAIN.backend_fail -f MAIN.backend_unhealthy -f MAIN.backend_busy

# Check if grace is masking the backend problem
varnishstat -1 -f MAIN.cache_hit_grace -f MAIN.s_synth

# Check workspace overflow and lost headers
varnishstat -1 -f 'MAIN.ws_*_overflow' -f MAIN.losthdr

# Check thread starvation affecting backend fetches
# MAIN.fetch_no_thread: Varnish up to 7.1; renamed MAIN.bgfetch_no_thread in 7.2+
varnishstat -1 -f MAIN.fetch_no_thread   # Varnish <= 7.1
varnishstat -1 -f MAIN.bgfetch_no_thread # Varnish >= 7.2

How to diagnose it

Step 1: Determine whether the 503 is Varnish-synthesised or backend-originated.

Filter varnishlog for 503 responses and look for a FetchError tag in the same request transaction:

varnishlog -q 'RespStatus == 503' -g request

If you see a FetchError line in the backend transaction, Varnish generated the 503 because the fetch failed. If you see a complete backend response with status 503 and no FetchError, the backend itself returned 503 and you need to investigate the origin, not Varnish.

Step 2: Read the FetchError string.

varnishlog -b -q 'FetchError'

The -b flag filters to backend transactions. The query matches any FetchError record. The output gives you the exact failure string, which maps directly to a cause. Common strings and their meanings:

  • first byte timeout (6.6+; logged as HTC idle (3) on 6.0 LTS): the backend accepted the TCP connection but did not send response headers within first_byte_timeout (default 60s). The backend is alive on TCP but too slow to respond.
  • HTC eof (-1): the backend closed the connection before sending a complete response header. On Varnish 4.x the same condition logged http first read error: EOF; on 6.0 LTS it logged HTC eof (-1).
  • HTC eof also covers a connection closed mid-response, after headers but before the body completed. Often a backend crash, OOM kill, or keepalive mismatch.
  • backend <name>: unhealthy: the health probe marked this backend sick. Varnish did not attempt the fetch.
  • Director returned no backend or No backend: all backends in the director are sick. No fetch was possible.
  • backend <name>: busy: the backend reached its configured max_connections limit.
  • http format error: the backend sent a response that Varnish’s HTTP parser rejected. Check for HTTP/0.9 responses, missing headers, or oversized headers exceeding http_resp_hdr_len.
  • overflow or out of workspace: the backend response exceeded available workspace memory.

Step 3: Check backend health.

varnishadm backend.list -p

Look at the probe status for each backend. The happy column shows how many recent probes succeeded within the window. If happy is below the configured threshold, the backend is sick. Verify the probe URL: a common mistake is a probe pointing at an endpoint that returns 404 or 500, which marks the backend sick even though the application works for real traffic.

Step 4: Assess grace runway.

If MAIN.cache_hit_grace is elevated but 503s are low, Varnish is serving stale content and the backend problem is deferred, not resolved. Check how long the grace window is in your VCL (beresp.grace value) to estimate when the 503s will start cascading. The keep parameter controls how long objects are retained after TTL and grace expire; once both are exhausted, Varnish has nothing to serve and falls through to vcl_backend_error.

Step 5: Check workspace and thread pool.

If the FetchError is overflow or out of workspace, check workspace overflow counters:

varnishstat -1 -f 'MAIN.ws_*_overflow' -f MAIN.losthdr

If MAIN.fetch_no_thread is incrementing (7.2+ reads MAIN.bgfetch_no_thread, the renamed counter), the thread pool cannot dispatch backend fetches. This is a thread pool saturation problem, not a backend problem:

varnishstat -1 -f MAIN.threads -f MAIN.thread_queue_len -f MAIN.threads_limited

Metrics and signals to monitor

SignalWhy it mattersWarning sign
MAIN.fetch_failedSummary of all backend fetch failures. Each failure potentially means a client 503 unless grace applies.Sustained nonzero rate
MAIN.backend_unhealthyConnections not attempted because backend is sick. Distinct from backend_fail (attempted and failed).Any nonzero rate
MAIN.backend_failTCP connections to backends that failed (refused, timeout, reset).Sustained nonzero rate
MAIN.backend_busyBackend max_connections reached. Connections rejected.Any nonzero rate
MAIN.s_synthTotal synthetic responses generated by Varnish. Includes but is not limited to 503s.Spike above baseline
MAIN.cache_hit_grace (all supported versions)Hits served from stale objects via grace. High rate with low 503s means backend is down but masked.Spike above baseline
MAIN.fetch_no_thread (≤7.1; renamed MAIN.bgfetch_no_thread in 7.2, same meaning)Backend fetches that could not be dispatched due to thread pool exhaustion.Any nonzero value
MAIN.ws_backend_overflowBackend workspace exhausted by response headers or body.Any nonzero value
VBE.<name>.happyPer-backend health probe success count within the window.Value below probe threshold

Fixes

All backends sick

The backend health probe is failing. Verify the probe configuration. Check that the probe URL returns 200 from the backend’s perspective:

# Verify the probe endpoint returns 200 from the backend
curl -I http://<backend_host>:<backend_port><probe_url>

If the probe URL is wrong (returning 404, 500, or a redirect), fix the probe definition in VCL and reload. If the probe URL is correct but the backend is genuinely down, investigate the backend application and infrastructure.

Backend timeout after connect

The backend accepted the TCP connection but was too slow to send headers. The relevant VCL parameters are connect_timeout, first_byte_timeout, and between_bytes_timeout, set per-backend in the backend definition.

Increasing first_byte_timeout gives the backend more time, but the real fix is almost always backend performance. If the backend is slow because it is overloaded (cache miss storm, database lock), increasing the timeout just delays the failure. Investigate backend response time:

# Check backend TTFB from varnishlog timestamps
varnishlog -g request -i Timestamp -q 'BerespStatus gt 0'

Look at the Bereq to Beresp delta for backend time-to-first-byte.

Backend premature close

The backend closed the connection before completing the response. Common causes: backend OOM kill, backend crash during response generation, or keepalive mismatch where the backend closes idle connections faster than Varnish reuses them. Check backend error logs and system logs (dmesg, journalctl) for crashes or OOM events.

max_connections reached

If you configured .max_connections on the backend definition and traffic exceeds it, Varnish logs FetchError: backend ...: busy. Either raise the limit in the VCL backend definition or add more backend capacity. MAIN.backend_busy tracks this condition. Note that max_connections is not enabled by default; if you never set it, this is not your cause.

Workspace exhausted

Large response headers, excessive Set-Cookie headers, or complex VCL string operations can exhaust the per-request workspace. Increase the backend workspace:

# Increase backend workspace (runtime, does not persist across restart)
varnishadm param.set workspace_backend 128k

This takes effect for new connections. Increasing workspace raises per-connection memory usage, so calculate the impact against your maximum concurrent connection count. workspace_client (64k on 6.x, 96k since 7.0) is a separate parameter for the client side; large request headers or cookies exhaust that instead.

Thread pool exhaustion affecting fetches

If MAIN.fetch_no_thread is nonzero (MAIN.bgfetch_no_thread on 7.2+), the worker pool is saturated and cannot dispatch backend fetches. This is not a backend problem. Increase thread_pool_max or investigate what is holding worker threads (typically slow backend responses on cache miss paths). See the related guide on thread pool exhaustion for detailed tuning guidance.

Prevention

  • Configure grace in VCL. Set beresp.grace in vcl_backend_response to a duration that covers typical backend recovery time. This turns sudden backend failures into deferred failures, giving you time to fix the backend before clients see 503s. Without grace, any backend hiccup immediately produces 503s for all cache misses.
  • Persist varnishncsa logs to disk. The shared memory log is ephemeral. Without a log consumer writing to persistent storage, you lose the FetchError data you need for post-incident analysis. Always run varnishncsa writing to disk with rotation.
  • Monitor backend health independently of client-facing metrics. Grace can mask backend failures for extended periods. If you only alert on 503 rate, you will not discover the backend is down until grace expires and 503s cascade.
  • Audit health probe configuration. Verify that the probe URL exercises real application health, not just TCP reachability. A probe that checks a static endpoint can return “healthy” while the application is broken for real traffic. Verify the probe URL returns 200 from the backend itself.

How Netdata helps

Netdata collects the counters that distinguish a Varnish-synthesised 503 from other failure modes, at per-second resolution:

  • MAIN.fetch_failed and MAIN.fetch_no_thread appear alongside backend connection counters (backend_fail, backend_unhealthy, backend_busy) on the same timeline, so you can correlate fetch failures with sick backends, connection failures, or thread starvation.
  • MAIN.cache_hit_grace is tracked independently of error rates. A spike in grace hits with a stable 503 rate reveals that Varnish is masking a backend outage.
  • MAIN.s_synth correlates with backend health signals, making it clear when synthetic responses are driven by backend unreachability versus VCL logic.
  • MAIN.ws_backend_overflow and MAIN.losthdr are collected continuously, so workspace-related 503s do not require a manual varnishstat check to discover.
  • Per-backend VBE.*.happy counters let you see which specific backend is failing its probes, not just an aggregate health summary.