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 / traefik / traefik-goroutine-leak ▌

Operations Guides

Traefik goroutine leak: go_goroutines climbing toward OOM

Your Traefik dashboard shows go_goroutines climbing steadily over hours or days. Traffic is flat. Latency and error rates look normal. Yet the goroutine count keeps rising, RSS grows in lockstep, and you can extrapolate a straight line from today’s memory usage to the container limit and read off the day Traefik gets OOM-killed, dropping every in-flight connection with it.

In Traefik this almost always has the same shape: a backend accepts the TCP connection but never sends response headers, and the forwarding transport has no timeout (or a very long one) on that wait. Each stuck request leaves a goroutine blocked indefinitely. The goroutine count is the earliest visible signal, long before users feel anything.

This guide covers how to confirm the leak, identify which backend is causing it, and fix the timeout configuration that allowed it.

What this means

Traefik spawns goroutines per connection and per in-flight request (Go’s net/http model), plus a baseline set for provider watchers, health checkers, and internal loops. In steady state, the count is baseline goroutines (typically 50-200) plus active connections. After a traffic spike recedes, the count should fall back toward baseline within the keep-alive window. A count that climbs monotonically while request rate stays flat means goroutines are being created but never finishing.

The dominant cause: a backend completes the TCP handshake (so the dial succeeds and the connection looks healthy), then hangs before sending response headers. Traefik’s goroutine for that request blocks waiting for headers. If responseHeaderTimeout in the serversTransport is unset (it defaults to 0s, meaning unbounded, per the Traefik documentation) or set to minutes, the goroutine waits effectively forever. Repeat this for every request to the broken backend and goroutines accumulate.

Each leaked goroutine costs more than its ~8KB stack. It pins everything in its closure: request context, buffers, transport state. That is why process_resident_memory_bytes rises in lockstep with go_goroutines, and why the line does not bend until the process is killed.

flowchart TD
  A[Backend accepts TCP connection] --> B[Backend never sends response headers]
  B --> C[Request goroutine blocks with no or long responseHeaderTimeout]
  C --> D[go_goroutines climbs over hours to days]
  D --> E[Each goroutine pins stack and closure memory]
  E --> F[RSS grows in lockstep toward the container limit]
  F --> G[OOM kill: all connections dropped instantly]

The dangerous property of this failure mode is how healthy everything else looks. Latency and throughput stay normal until very late, because the leaked goroutines are parked, not consuming CPU. The only early signals are the goroutine count and memory trend themselves.

Common causes

CauseWhat it looks likeFirst thing to check
Backend accepts TCP but never responds (deadlock, thread pool exhaustion) and responseHeaderTimeout is unset or very longgo_goroutines climbing, traefik_open_connections rising while request rate is flatpprof goroutine dump: stacks blocked waiting for backend response
responseHeaderTimeout set but too long (e.g. 300s) under a sustained slow backendSlower, sawtooth-ish growth; goroutines eventually expire but accumulate faster than they drainYour serversTransport values vs. actual backend response times
WebSocket or long-lived connections without idle timeoutConnection count grows and never decays after traffic recedestraefik_open_connections trend vs. request rate
Provider watcher or internal goroutine leak (rare, often version-specific)Growth disconnected from any backend; stacks not in the forwarding pathpprof dump: what are the leaked goroutines actually doing
Plugin-related leak (middleware plugins interpreted at runtime)Growth correlates with traffic through a specific plugin-enabled routerDisable the plugin on one router and compare growth rates

Quick checks

All read-only. Run them against the affected instance.

# Current goroutine count from the metrics endpoint
curl -s http://localhost:8080/metrics | grep go_goroutines

# Resident memory of the Traefik process
grep VmRSS /proc/$(pgrep traefik)/status

# Go heap in use (live allocations, not just RSS)
curl -s http://localhost:8080/metrics | grep go_memstats_heap_inuse_bytes

# Open connections per entrypoint (metric name varies by version and config:
# traefik_open_connections or traefik_entrypoint_open_connections)
curl -s http://localhost:8080/metrics | grep open_connections

# Entrypoint request rate for comparison (sample twice, 60s apart)
curl -s http://localhost:8080/metrics | grep traefik_entrypoint_requests_total

# Backend connection states held by the Traefik process
ss -tnp | grep traefik | awk '{print $1}' | sort | uniq -c

The decisive pattern: go_goroutines and RSS rising together while the traefik_entrypoint_requests_total rate is flat or falling. Rising goroutines plus rising request rate plus stable memory per goroutine is normal scaling, not a leak.

Two things that look like this but are not:

  • Startup spike. Traefik spawns provider watchers, health checkers, and internal loops simultaneously at boot; the count can jump to 200+ and settle. Growth that started at boot and then plateaued is normal.
  • Post-spike drain lag. After a real traffic spike, the count should return toward baseline within the keep-alive timeout. Only a count that never falls back is a leak.

How to diagnose it

  1. Confirm the leak pattern. Plot or sample go_goroutines, process_resident_memory_bytes, and the entrypoint request rate over the same window. You want monotonic goroutine and RSS growth with flat traffic. If goroutines track traffic, stop here: you have a scaling question, not a leak.

  2. Capture a goroutine profile. This requires the debug API (api.debug=true), which installs the pprof handlers:

    # Dump all goroutine stacks in human-readable form
    curl -s "http://localhost:8080/debug/pprof/goroutine?debug=1" > traefik-goroutines.txt
    

    Note the security tradeoff: the debug and API endpoints expose internals, so enable them only on a loopback or restricted entrypoint, and disable them again when done.

  3. Group the stacks. Most of the file will be the same stack repeated thousands of times. Count by signature:

    # Rough histogram of what goroutines are waiting on
    grep -A1 "^goroutine " traefik-goroutines.txt | grep -v "^--" | sort | uniq -c | sort -rn | head
    

    A forwarding-side leak shows large counts of goroutines blocked in the net/http transport path, waiting on a response from a backend. If the dominant stacks are in a provider watcher, a middleware, or a plugin, that redirects the investigation.

  4. Map the stuck stacks to a backend. From the stacks and from socket state (ss -tnp | grep traefik), identify which backend address the stuck connections point to. Cross-check with traefik_service_server_up: health checks may still pass for that backend if the health endpoint responds on a different code path than the hung application endpoints. This is the “healthy yet failing” case: server_up = 1, real requests hanging.

  5. Check your timeout configuration. Look at the effective serversTransport for the affected service (via /api/rawdata or your dynamic config source). If responseHeaderTimeout is missing, it is unbounded. Also check dialTimeout and idleConnTimeout while you are there.

  6. Decide severity. While goroutines are growing and RSS is well under the limit, this is a ticket: investigate during hours, fix the backend and the timeouts. When RSS crosses roughly 80% of the container limit, treat it as a page: the gap between “GC is struggling” and “OOM kill” is short, and the kill drops every connection at once.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
go_goroutinesEarliest leak indicator; directly counts stuck workSustained >2-3x baseline with no matching traffic increase
process_resident_memory_bytesTracks what the OOM killer seesRising in lockstep with goroutines; >80% of container limit
go_memstats_heap_inuse_bytesLive heap, confirms pinned memory rather than GC lagGrowing without corresponding traffic growth
traefik_open_connections (per entrypoint)Distinguishes connection pile-up from pure goroutine growthRising while request rate is flat or falling
traefik_entrypoint_requests_total (rate)The control variable: is traffic actually growing?Flat or declining while goroutines rise confirms a leak
traefik_service_server_upLocates the misbehaving backend, with the caveat that health checks can lieBackend “up” while stuck connections pile up against it
traefik_service_request_duration_secondsStays normal until very late; a late-stage corroborating signalp95 rising at the same time as goroutines means the leak is now affecting live traffic

Fixes

Remove the misbehaving backend from rotation

The backend that hangs after accepting connections is the root cause. Drain it, restart it, or pull it from the pool so new requests stop piling onto the leak. A restart of Traefik itself clears the accumulated goroutines and buys time, but it drops every in-flight connection instantly, and it does not fix anything: if the backend still hangs, the leak restarts from zero the moment traffic resumes. Fix the backend first; restart Traefik only when memory pressure forces it.

Set forwarding timeouts in serversTransport

Bound every stage of the backend interaction. In the dynamic configuration (v2/v3), define a serversTransport and attach it to the service:

# Dynamic configuration (file provider example)
http:
  serversTransports:
    guarded:
      forwardingTimeouts:
        dialTimeout: "30s"
        responseHeaderTimeout: "30s"
        idleConnTimeout: "90s"
  services:
    my-service:
      loadBalancer:
        serversTransport: guarded   # attach the transport to the service
        servers:
          - url: "http://backend:9000"
  • responseHeaderTimeout is the critical one for this failure mode. It caps how long Traefik waits for response headers after the request is fully written. With it set, a hung backend produces a 504 for that request and frees the goroutine instead of leaking it. Size it above your slowest legitimate response, not at zero and not at five minutes.
  • dialTimeout bounds connection establishment. It protects against backends that do not even complete the handshake.
  • idleConnTimeout reaps idle pooled connections so they cannot be silently killed by intermediaries and discovered dead later.

Tradeoffs: a responseHeaderTimeout that is too short will cut off legitimately slow endpoints (report generation, large exports) with 504s. Endpoints that legitimately stream or hold a response open need either a longer timeout on their specific serversTransport or a different handling strategy. Also remember the timeout chain: client, upstream load balancer, Traefik, backend. Each layer’s timeout should be longer than the one in front of it, or intermediaries will close connections that downstream components are still using, producing a different intermittent failure.

If the leak is not in the forwarding path

If pprof shows the leaked goroutines in a provider watcher, a middleware, or a plugin, timeouts will not help. Isolate by disabling the suspect component on one router or one instance and comparing growth rates. Check the Traefik issue tracker for your version before assuming your configuration is at fault.

Prevention

  • Never run a production service without responseHeaderTimeout. The default is unbounded, which converts any hung backend into a memory leak. Make a bounded serversTransport part of your service template.
  • Alert on the goroutine trend, not the absolute value. Baseline go_goroutines per instance and alert on sustained >2-3x baseline without a matching traffic increase. This catches the leak days before the OOM.
  • Alert on RSS versus the container limit. Goroutine alerts give you the trend; the memory alert gives you the deadline. RSS above 80% of the limit with a rising trend deserves immediate action.
  • Track open connections against request rate. A widening gap between traefik_open_connections and the request rate is an early connection-accumulation signal, upstream of the goroutine signal.
  • Rehearse the pprof capture. Enable the debug API on a restricted entrypoint before you need it, and confirm /debug/pprof/goroutine?debug=1 is reachable from your jump host. Mid-incident is the wrong time to learn the endpoint is not exposed.

How Netdata helps

  • Per-second go_goroutines and process RSS on the same timeline. The leak signature is two curves moving together while traffic is flat; seeing them overlaid at high resolution makes the divergence from traffic obvious in seconds.
  • Correlation with Traefik’s own metrics. Netdata’s Traefik collector pulls entrypoint request rates, response codes, and open connections alongside the Go runtime and process metrics, so the “goroutines up, traffic flat” comparison lives on one dashboard instead of two tools.
  • Container limit context. Netdata shows process memory against the cgroup limit, which turns “RSS is rising” into “RSS will hit the limit in roughly N hours at this rate.”
  • Trend alarms. Alerts on sustained goroutine growth and on memory-versus-limit ratios fire while the leak is still a ticket, not after the OOM kill makes it a page.