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-memory-usage-growing ▌

Operations Guides

Traefik memory usage growing: routing table size and heap trends

process_resident_memory_bytes on your Traefik instance has been climbing for days. Request rates look normal, error rates are flat, and /ping returns 200. The question is whether the proxy legitimately needs more memory because its routing table grew, or whether it is leaking and will get OOM-killed at 3 a.m. with zero warning.

The failure mode is asymmetric. Go’s garbage collector absorbs growing allocation pressure gracefully, running more often and burning more CPU, until it cannot. Then the kernel OOM killer terminates the process instantly, dropping every connection in flight. There is no graceful degradation phase.

This guide separates the two cases: memory that tracks configuration size and traffic (expected), and memory that grows disconnected from both (a leak). The single most useful discriminator is the correlation between go_memstats_heap_inuse_bytes and go_goroutines.

What this means

Traefik’s memory footprint has three main drivers, each with a different trend signature:

  1. Routing table size. Every router, middleware, and service in the dynamic configuration consumes heap. Traefik v2 and later use significantly more memory per route than v1 did, due to the middleware chain architecture. Large routing tables (10,000+ routes) can consume hundreds of MB at rest. If you migrated from v2 to v3 and memory jumped, or if your route count is growing, this is likely the explanation. See the hub page’s failure pattern catalogue for where “routing table explosion” sits among Traefik’s failure archetypes.

  2. Connection and buffering state. One goroutine per active connection, plus middleware buffers. Middlewares that buffer request or response bodies (buffering, compression) consume memory proportional to body size times concurrent requests. Long-lived WebSocket and gRPC connections hold goroutines and buffers indefinitely.

  3. Metric cardinality. Prometheus metrics with per-router labels (addRoutersLabels: true) or high-cardinality header labels grow the in-memory metric store. Every unique label combination is a live series that is never freed.

A fourth category is genuine leaks: goroutines that never terminate (hung backend connections with no timeout), known middleware bugs, or plugin caches that never release. These show the same upward RSS trend but a different internal signature, which is what the diagnosis section isolates.

flowchart TD
    A[RSS trending up over days] --> B{heap_inuse growing too?}
    B -- No --> C[Go has not returned memory to OS.
Watch, but not a leak.] B -- Yes --> D{Goroutines growing with it?} D -- Yes --> E[Goroutine leak.
Capture pprof goroutine dump.] D -- No --> F{Route count or reload rate growing?} F -- Yes --> G[Legitimate routing-table growth.
Capacity-plan, consider providersThrottleDuration.] F -- No --> H{Metric cardinality or middleware change?} H -- Yes --> I[Cardinality growth or middleware leak.
Check labels, known issues.] H -- No --> J[Capture heap profile with pprof.
Find the allocation site.]

Common causes

CauseWhat it looks likeFirst thing to check
Routing table growthheap_inuse tracks route count; goroutines stable; memory steps up on config reloadsRouter/service count via /api/http/routers, config reload rate
v2 to v3 migrationStep change in baseline memory after upgrade, then stableRoute count unchanged but baseline higher; known v3 behavior
Goroutine leakheap_inuse and go_goroutines rising together, disconnected from trafficgo_goroutines trend vs request rate; pprof goroutine dump
Compress middleware bug (v3.0-v3.2)Rapid unbounded growth under load, sometimes tens of MB to GBTraefik version; whether compress middleware is in use
Metric cardinalitySlow steady growth; correlates with number of distinct label valuesaddRoutersLabels, headerLabels config; metric series count
Body buffering middlewareMemory tracks traffic peaks, spiky, recovers partiallyWhether buffering/compress middlewares are enabled
Regexp-heavy dynamic routesGrowth with route churn; regexp compiler allocations dominate heap profilepprof heap profile showing regexp compilation
Long-lived connectionsGoroutines and memory track WebSocket/gRPC connection counttraefik_open_connections trend vs request rate

Quick checks

All read-only. Run them against the metrics endpoint and the process.

# Live heap vs mapped heap: heap_inuse is the number that matters
curl -s http://localhost:8080/metrics | grep -E 'go_memstats_heap_(inuse|sys|alloc)_bytes'

# Goroutine count: the leak discriminator
curl -s http://localhost:8080/metrics | grep go_goroutines

# Process RSS from the kernel's point of view
grep VmRSS /proc/$(pgrep traefik)/status

# Config churn: is the routing table being rebuilt constantly?
curl -s http://localhost:8080/metrics | grep traefik_config_reload

# Connection load: are connections accumulating?
curl -s http://localhost:8080/metrics | grep traefik_open_connections

Two interpretive rules before you go further:

  • Use heap_inuse, not heap_sys. go_memstats_heap_sys_bytes includes memory the Go runtime has mapped from the OS but is not currently using. Go does not promptly return memory to the OS, so heap_sys and RSS can look alarming while live data is flat. go_memstats_heap_inuse_bytes is live allocations: if it is flat, you do not have a leak, you have a Go runtime holding onto freed pages.
  • Expect RSS to sit around 2x live data. With the default GOGC=100, GC triggers when the heap doubles. Steady-state RSS of roughly twice the live heap is normal Go behavior, not a leak.

How to diagnose it

  1. Establish the trend on heap_inuse, not RSS. Look at go_memstats_heap_inuse_bytes over 24-72 hours. Flat with a sawtooth (GC cycles) is healthy. A rising floor after each GC cycle is growth. A monotonic climb is a leak until proven otherwise.

  2. Correlate with goroutines. Plot go_goroutines over the same window. If goroutines and heap_inuse rise together while request rate and open connections are flat, you have a goroutine leak: each leaked goroutine pins its stack and every heap object reachable from its closure. This is the most common true leak pattern in a Go proxy.

  3. Correlate with routing table size. If goroutines are stable, check whether configuration is growing. Pull the current router and service inventory:

# How many routers and services are actually loaded?
curl -s http://localhost:8080/api/http/routers | jq 'length'
curl -s http://localhost:8080/api/http/services | jq 'length'

Compare with historical values if you have them. Also check the traefik_config_reloads_total rate: frequent rebuilds in a churning environment allocate a new router/middleware/service object graph each time, and memory steps up with each rebuild if the table is growing. Rebuild CPU cost scales with routers times middlewares times services.

  1. Check the version against known leaks. If you run Traefik v3.0 through v3.3.4 with the compress middleware enabled, you are exposed to a confirmed unbounded-growth bug in the compression algorithm priority, fixed in v3.3.5 (upstream issue #10859, fix PR #11641). Operators reported memory climbing from tens of MB to multiple GB under load with small route counts. If this matches your setup, upgrading or removing the compress middleware is the fix, not capacity planning. There are also upstream reports of regexp-heavy dynamic routing (issue #8044, with a v2 mitigation in PR #8706) and bulk Redis dynamic-rule updates (issue #11979) accumulating memory; profile any recurrence rather than assuming either reproduces in your version.

  2. Check metric cardinality. If addRoutersLabels: true is set, every router adds label combinations to every metric. If headerLabels maps a high-cardinality header (User-Agent, request IDs) into metric labels, series count grows unboundedly and each series is resident memory. Note that the Host header is promoted to Request.Host by Go and never appears in the header map, so headerLabels on Host silently does nothing; use X-Forwarded-Host if that is what you intended.

  3. Capture a heap profile. If none of the above explains it, get the allocation site directly. Enable api.debug: true in the static configuration, then:

# Capture a heap profile (requires api.debug: true; served on the API/dashboard entrypoint)
go tool pprof http://localhost:8080/debug/pprof/heap

Look at what dominates inuse_space. TLS connection buffers (crypto/tls internals) point at long-lived connections. Regexp compilation internals point at route churn with regexp rules. Middleware buffers point at buffering under traffic. Enabling the debug API exposes pprof endpoints; bind them to a private interface and do not leave them reachable from untrusted networks.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
go_memstats_heap_inuse_bytesLive heap allocations; the real leak indicatorRising floor after each GC cycle over days
process_resident_memory_bytesWhat the kernel and the OOM killer see> 80% of container limit, sustained
go_goroutinesDistinguishes goroutine leak from data growthRising with heap, disconnected from traffic
go_gc_duration_secondsGC struggling before the crashp99 pause time climbing steadily week over week
traefik_config_reloads_total rateConfig churn drives allocation and rebuild cost> 1/second sustained
Router/service count (via API)Direct measure of routing table sizeGrowth without a planned cause
traefik_open_connectionsConnection accumulation holds goroutines and buffersRising without corresponding request rate

The degradation curve: GC pause latency climbs first, then OOM arrives with no further warning. If heap_inuse exceeds roughly 80% of the container memory limit, runway is minutes to seconds depending on allocation rate. Size container memory limits at about 2x the observed stable peak heap so the GC has headroom and traffic spikes are absorbable.

Fixes

Legitimate routing-table growth

If the routing table is genuinely that big, the fix is capacity and architecture, not debugging. Raise the container memory limit to 2x peak heap. Reduce rebuild pressure with providersThrottleDuration (default 2s in current v2/v3 references; batching provider events reduces both rebuild CPU and allocation churn). If a single instance’s routing table is pushing hundreds of MB and rebuilds are visible in latency, consider sharding: split route ownership across multiple Traefik instances by namespace, domain, or entrypoint.

Goroutine leak

Identify what the leaked goroutines are blocked on from a goroutine profile (/debug/pprof/goroutine?debug=1). The usual root cause is a backend that accepts TCP connections but never responds, combined with missing or overly long transport timeouts. Set dialTimeout, responseHeaderTimeout, and idleConnTimeout under serversTransport.forwardingTimeouts so stuck requests terminate. Remove the misbehaving backend from rotation while you fix it. Restarting Traefik clears the accumulated goroutines but does not fix the cause; treat it as buying runway only.

Compress middleware bug

Upgrade to v3.3.5 or later, where the compression algorithm priority was reverted to the v2 behavior. If you cannot upgrade immediately, removing the compress middleware stops the growth at the cost of uncompressed responses.

Metric cardinality

Turn off addRoutersLabels unless you genuinely need per-router metrics. Audit headerLabels and drop any label sourced from a high-cardinality header. If Prometheus itself is also growing, the cardinality explosion is on both sides and scraping will get slow before Traefik runs out of memory.

Connection accumulation

If traefik_open_connections grows without request-rate growth, connections are not being closed. Check keep-alive alignment between Traefik and any upstream load balancer (the classic mismatch: the upstream LB’s idle timeout is longer than Traefik’s, so the LB reuses connections Traefik already closed). WebSocket-heavy workloads need a separate baseline; long-lived connections holding goroutines and buffers is expected behavior, and the fix is capacity, not timeouts you do not want.

Prevention

  • Alert on the pair, not the point. A static RSS threshold pages you too late or not at all. Alert on heap_inuse trend over 24h and on heap/goroutine divergence from traffic baseline. Anomaly detection on the ratio of memory growth to request-rate growth catches leaks weeks before the OOM.
  • Baseline after every upgrade. v2-to-v3 changed the per-route memory cost. Re-baseline heap, goroutines, and rebuild rate after any version upgrade before you declare it clean.
  • Cap config churn. Set providersThrottleDuration deliberately for your environment’s change rate, and investigate pathological provider churn (flapping health checks, autoscaler loops) rather than letting Traefik absorb it.
  • Set explicit transport timeouts. An unbounded responseHeaderTimeout is the single most common enabler of goroutine leaks. Every backend transport should have timeouts chosen deliberately.
  • Keep cardinality on a budget. Treat addRoutersLabels and headerLabels as spend decisions. If you enable per-router metrics, know your router count ceiling.
  • Watch GC pauses as the early warning. Rising go_gc_duration_seconds p99 means the heap is outgrowing the collector, and it appears before latency degrades and well before OOM.

How Netdata helps

  • Netdata charts go_memstats_heap_inuse_bytes alongside process_resident_memory_bytes per second, so you can see the post-GC floor rising (a leak) versus a flat floor under a high-water RSS (Go runtime behavior) without waiting for daily aggregates.
  • Overlaying go_goroutines on the heap trend makes the core discriminator in this article a visual check: the two lines moving together, disconnected from request rate, is the leak signature.
  • Config reload rate and open connections sit on the same dashboard, so the “growing routing table” versus “growing connection state” branches of the decision tree are one screen apart.
  • go_gc_duration_seconds percentiles surface the GC-struggle phase of the degradation curve, giving you a warning stage before the OOM cliff.
  • ML-based anomaly detection on the memory-to-traffic relationship flags slow, multi-day drift that static thresholds on absolute RSS routinely miss.