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-slow-response-latency ▌

Operations Guides

Varnish slow responses: hit latency, miss latency, and why varnishstat has no timing

Users report slow responses through Varnish. You open varnishstat and look for a latency counter. There isn’t one. Varnish’s counter subsystem maintains event counts and gauges: cache_hit, cache_miss, threads, backend_fail. None of them measure how long a request took.

This is architectural. Varnish writes per-request timing into the shared memory log (VSL) as Timestamp tags with per-phase resolution. The tools to read them are varnishlog, varnishncsa, and varnishhist. If you are diagnosing slow responses using varnishstat alone, you have no timing data.

The second trap: tracking aggregate P99 across all requests. Cache miss latency is dominated by backend response time, typically orders of magnitude slower than cache hit latency. A regression in the hit path, where Varnish itself is the bottleneck, is invisible when miss latency dominates the tail. Measure hit and miss distributions separately.

Why varnishstat has no timing

varnishstat reads from Varnish’s counter subsystem, a region of shared memory optimized for high-frequency integer updates without per-event overhead. Adding per-request timing would require either a histogram (memory proportional to bucket count) or a running average (lossy and misleading for latency, which has a long tail).

Instead, Varnish writes per-request timing into the VSL as Timestamp tags. This gives full-resolution per-request data, but it lives in a circular buffer that wraps if consumers do not read fast enough. You get exact per-request timing, but only if you capture it in real time.

The Timestamp tag

Every request transaction includes a series of Timestamp tags:

Timestamp <label>: <absolute_seconds> <seconds_since_start> <seconds_since_previous>

The three fields after the label:

  1. Wall-clock time when this point was reached
  2. Cumulative seconds since the Start timestamp (total elapsed for this request)
  3. Seconds since the previous Timestamp tag in this transaction

For total request processing time, the second field of Timestamp:Resp is the authoritative value.

A cache hit produces these tags (no Fetch):

Timestamp Start: ...
Timestamp Req: ...
Timestamp Process: ...
Timestamp Resp: 1606399284.176648 0.000388 0.000255

A cache miss adds a Fetch timestamp for the backend round trip:

Timestamp Start: ...
Timestamp Req: ...
Timestamp Fetch: ...
Timestamp Process: ...
Timestamp Resp: 1606398588.818609 0.007421 0.000178

The hit completed in 388 microseconds. The miss took 7.4 milliseconds, with most of the time in the Fetch phase (backend response). Process and Resp deltas are nearly identical between hit and miss. Varnish’s own overhead is sub-millisecond; miss latency is dominated by backend response time.

flowchart LR
    subgraph hit["Cache hit - no Fetch tag"]
        A1["Start"] --> A2["Req"] --> A3["Process"] --> A4["Resp"]
    end
    subgraph miss["Cache miss - includes Fetch"]
        B1["Start"] --> B2["Req"] --> B3["Fetch"] --> B4["Process"] --> B5["Resp"]
    end
    A4 -->|"Resp field 2 = total time"| R1["Hit latency: expect sub-ms"]
    B5 -->|"Resp field 2 = total time"| R2["Miss latency: includes backend fetch"]

Where to get timing data

ToolFormat or tagUse case
varnishlogTimestamp tags per requestSingle-request forensic analysis, per-phase breakdown
varnishncsa%D (microseconds), %{Varnish:time_firstbyte}x (TTFB in seconds)Bulk logging to disk for percentile analysis
varnishhistLive terminal histogram: response time and fetch time distributionsReal-time assessment during incidents

varnishhist is useful during an incident. The default profile shows two histograms: total response time for all requests, and fetch time for backend responses (misses only). If response time shifts right but fetch time does not, the hit path is getting slower. If only the fetch distribution moves, the backend is the problem.

What “slow” means for each path

Cache hits should be sub-millisecond. Consistently exceeding 10ms on hits indicates system-level contention: CPU scheduling delays, thread pool queuing, ban list lookup overhead, or workspace pressure. The hit path does almost no I/O. If it is slow, something inside Varnish or the OS is contending.

Cache miss latency is bounded by backend response time plus Varnish overhead. The overhead component should add less than 5ms. If miss latency increases but backend TTFB (visible in the Fetch timestamp delta) is unchanged, Varnish’s processing or queuing overhead is the problem. If backend TTFB has increased, the problem is downstream.

Common causes

CauseWhat it looks likeFirst thing to check
Backend slownessMiss latency elevated, hit latency normalvarnishlog Timestamp:Fetch delta
Ban list growthHit latency creeping up, backend req rate stablevarnishstat -1 -f MAIN.bans
Thread pool contentionAll requests slow, queue length > 0varnishstat -1 -f MAIN.thread_queue_len
VCL processing overheadHit latency elevated on specific URL patternsvarnishlog Timestamp:Process delta per request
Workspace pressureIntermittent slow hits plus 500 errorsvarnishstat -1 -f 'MAIN.ws_*_overflow'

Quick checks

# Live latency histogram (row 1 = all requests, row 2 = backend fetches)
varnishhist

# Log request duration in microseconds with hit/miss tag
varnishncsa -F '%D %s %{Varnish:hitmiss}x %U' -q 'ReqMethod ne "PURGE"'

# Per-phase timing for recent successful requests
varnishlog -i Timestamp -g request -q 'RespStatus == 200' | head -40

# Backend fetch time from Varnish's perspective
varnishlog -g request -i Timestamp -q 'BerespStatus gt 0'

# Check ban list length and lurker health
varnishstat -1 -f 'MAIN.bans*'

# Check thread pool saturation
varnishstat -1 -f MAIN.threads -f MAIN.thread_queue_len -f MAIN.threads_limited

# Check workspace overflow
varnishstat -1 -f 'MAIN.ws_*_overflow' -f MAIN.client_resp_500

The varnishncsa command tags each line with “hit” or “miss” via %{Varnish:hitmiss}x, letting you pipe through awk or sort for separate latency distributions. This is the fastest way to build a hit-vs-miss latency split from production traffic.

How to diagnose it

  1. Establish whether the problem is hit latency or miss latency. Run varnishhist. Two histograms appear: response time for all requests and fetch time for backend responses. If response time has shifted past 1ms but fetch time has not, the hit path is slow. If only fetch time has shifted, the backend is slow.

  2. If miss latency is the problem, measure backend TTFB. Extract Fetch-phase timing:

    varnishlog -g request -i Timestamp -q 'BerespStatus gt 0'
    

    Compare the Fetch timestamp delta to your backend’s expected response time. If backend TTFB has increased, the problem is downstream of Varnish. See Varnish fetch_failed: backend connected but the fetch broke and Varnish backend connection reuse low: keepalive not working and slow TTFB for related patterns.

  3. If hit latency is the problem, check the ban list. Every cache lookup tests the object against all outstanding bans. A large ban list makes each lookup O(n):

    varnishstat -1 -f MAIN.bans -f MAIN.bans_completed -f MAIN.bans_lurker_contention
    

    If MAIN.bans is high (hundreds or thousands) and growing while bans_completed lags, ban evaluation is adding milliseconds to every hit. See Varnish ban list growing: O(n) lookups and the lurker falling behind for the full diagnostic.

  4. Check thread pool saturation. Even cache hits need a worker thread. If the pool is full and the queue is backing up, requests wait before processing starts. This inflates Timestamp:Resp without showing up in Timestamp:Process:

    varnishstat -1 -f MAIN.threads -f MAIN.thread_queue_len -f MAIN.threads_limited
    
  5. Check for VCL overhead. Complex regex in vcl_recv or vcl_hash, heavy header manipulation, or VMOD calls add processing time visible in the Process delta:

    varnishlog -i Timestamp -g request | grep 'Timestamp: Process'
    
  6. Check workspace pressure. If workspace is nearly exhausted, Varnish may produce 500 errors or spend extra cycles on memory management:

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

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Hit latency (varnishncsa %D, filtered by hit)Isolates Varnish’s own processing overhead from backend timeConsistent >10ms on hits that were sub-ms before
Miss latency (varnishncsa %D, filtered by miss)Backend response time as seen by VarnishP99 above 2x baseline
MAIN.bansO(n) lookup overhead on every cache lookupGrowing trend, lurker not keeping up
MAIN.thread_queue_lenRequests waiting for worker threadsAny sustained nonzero value
MAIN.ws_*_overflowWorkspace exhaustion causing 500s or overheadAny nonzero rate
Backend TTFB (varnishlog Timestamp:Fetch)External dependency dominating miss latencyIncreasing trend
varnishhist distribution shapeReal-time view of response vs fetch latency shiftResponse column shifting right without fetch column

Fixes

Backend slowness (miss latency)

If miss latency is the problem, the backend is the root cause. Options:

  • Fix the backend. Profile the origin application. Varnish adds microseconds; backends add milliseconds.
  • Increase grace. Serve stale content while background fetches refresh objects, masking transient backend slowness. Without grace, any backend hiccup immediately produces 503s on all cache misses.
  • Increase thread_pool_max as a stopgap. If slow backends are holding threads and causing contention, a larger pool buys runway but does not fix the backend.

Ban list growth (hit latency)

Bans are being injected faster than the lurker processes them. Options, in order of preference:

  • Switch from req-based bans to obj-based bans. The ban lurker processes obj-based bans proactively. Req-based bans persist until every cached object is tested at lookup time, so every hit pays the full ban-list scan cost.
  • Use xkey VMOD or hash-based purging instead of regex bans. These invalidate by cache key without appending to the ban list.
  • Reduce ban_lurker_sleep to make the lurker more aggressive.
  • On Varnish 7.7+, tune ban_any_variant. This parameter (default 10000 in 7.7, changed to 0 in 8.0+) caps the number of possibly non-matching variants evaluated against the ban list during lookups. Setting it to 0 changes behavior to consider only matching objects, which reduces lookup overhead when many variants exist. See Varnish ban lurker not keeping up: contention and ban_lurker_sleep.

Thread pool contention (hit latency)

If all requests are slow because threads are queued:

  • Increase thread_pool_max via varnishadm param.set thread_pool_max N. Takes effect immediately. Calculate memory cost first: each thread consumes stack space (typically 64KB-512KB depending on OS and thread_pool_stack).
  • Check thread_pool_add_delay. If set too high, threads ramp up too slowly under load spikes and the queue backs up.
  • Investigate why threads are being held. Slow backends are the usual root cause. See Varnish backend is sick: health probes, all-backends-sick, and grace.

VCL overhead (hit latency)

If Process-phase timing is elevated on certain paths:

  • Compare Timestamp deltas across requests hitting different subroutines to isolate expensive VCL paths.
  • Simplify regex patterns in vcl_recv and vcl_hash. Regex evaluation is CPU-bound and runs on every request.
  • Audit VMOD calls for blocking operations (DNS lookups, external HTTP calls). These hold the worker thread for the entire call duration.

Workspace pressure (hit latency)

If workspace overflow counters are nonzero:

  • Increase workspace_client and workspace_backend. Costs more memory per connection. Calculate the cost: workspace size times max threads across all pools.
  • Identify oversized headers. Large Cookie headers are the most common cause.
  • Strip unnecessary request headers in vcl_recv before they consume workspace.

Prevention

  • Always run varnishncsa writing to persistent storage with %D and %{Varnish:hitmiss}x. Without this, you have no historical latency data when an incident occurs. The VSL is a circular buffer; unlogged data is gone.
  • Monitor hit and miss latency as separate distributions. Aggregate P99 hides hit-path regressions behind the miss tail.
  • Alert on MAIN.bans growth. The ban list is the most common cause of gradual hit latency degradation that goes unnoticed because hit rate is unchanged.
  • Monitor thread_queue_len at high frequency. It is a point-in-time gauge that oscillates rapidly. Sampling at 1-second intervals can miss sub-second spikes.
  • Track process RSS separately from configured storage size. The delta is transient storage plus overhead; unbounded growth leads to OOM with no warning from varnishstat.

How Netdata helps

Netdata’s Varnish collector surfaces the counter-level signals that correlate with latency regressions at per-second resolution:

  • Thread pool saturation (threads, thread_queue_len, threads_limited, threads_failed) is collected every second, making the exact moment contention begins visible before it cascades into dropped sessions.
  • Ban list counters (bans, bans_completed, bans_lurker_contention) are tracked as gauges and rates, so gradual accumulation is visible over hours or days.
  • Backend health and connection metrics (backend_fail, backend_unhealthy, backend_busy, backend_reuse) correlate with miss latency changes, helping distinguish a backend regression from a Varnish-side problem.
  • Storage and eviction signals (n_lru_nuked, g_bytes, g_space) reveal when cache pressure drives increased miss rates.
  • Workspace overflow counters (ws_*_overflow, losthdr) surface the failure mode where oversized headers cause intermittent 500s.
  • Anomaly detection on all Varnish counters flags unusual patterns without requiring static thresholds.

For per-request latency itself, Netdata’s strength is correlation: when hit latency increases, the ban list, thread pool, and workspace signals that explain why are already collected at per-second resolution, ready to overlay on the same timeline.