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-504-gateway-timeout ▌

Operations Guides

Traefik 504 Gateway Timeout: the backend is alive but too slow

Your Traefik instance is up. /ping returns 200. The backend service is running, its health checks pass, and clients are getting 504 Gateway Timeout. The connection to the backend was established, but the response never arrived within the configured timeout.

A 504 in Traefik means: the backend exists, Traefik reached it, the TCP connection (and usually the request) succeeded, but the response took too long. That makes a 504 fundamentally different from a 502 (invalid response or connection error from the backend) or a 503 (no healthy backends at all). Lumping all 5xx together leads directly to investigating the wrong layer.

There are only two directions: the backend genuinely is slow (database queries, resource contention, a stalling downstream dependency), or the timeout on the relevant path is too aggressive for the workload. Determine which, and on which leg of the request the stall happens.

What this means

A Traefik 504 is generated by Traefik itself, not passed through from the backend. Traefik opened a connection to a backend server, sent the request, and gave up waiting. Two timeout families are involved:

  • respondingTimeouts (per entrypoint, static config): readTimeout (default 60s), writeTimeout (default 0s, unbounded), idleTimeout (default 180s). These govern the client-facing side. readTimeout covers reading the entire request body, not just headers. A slow upload that exceeds 60 seconds is therefore a supported upgrade-compatibility risk since v2.11.2 (previously 0s, no timeout); whether the failure is logged as 504 or 499 is protocol/version-dependent.
  • forwardingTimeouts (per ServersTransport, dynamic config): dialTimeout (default 30s), responseHeaderTimeout (default 0s, unbounded), idleConnTimeout (default 90s). These govern the Traefik-to-backend side. responseHeaderTimeout is the one most directly tied to backend slowness: how long Traefik waits for the backend to start responding. The 0s default means unbounded, so a backend that accepts a connection and stalls holds a Traefik goroutine indefinitely.

Corollary: if you have never set responseHeaderTimeout, Traefik does not time out waiting for response headers at all. In that configuration, a client-reported 504 is often the client-facing readTimeout firing, a load balancer in front of Traefik timing out, or the client itself giving up. Verify which component actually generated the 504 before tuning anything.

Common causes

CauseWhat it looks likeFirst thing to check
Backend genuinely slow (DB, CPU, dependency)traefik_service_request_duration_seconds p95/p99 climbing for one service, 504s concentrated on that serviceLatency histogram for the affected service
readTimeout too aggressive for uploads504s on large or slow request bodies, healthy backends, ~60s duration on failed requestsEntrypoint respondingTimeouts.readTimeout config
responseHeaderTimeout set too low504s on legitimately slow endpoints (reports, exports, search)ServersTransport forwardingTimeouts config
Backend accepts connection but stallsRising goroutines and open connections, stable request ratego_goroutines and traefik_open_connections trend
Retry amplification worsening slownesstraefik_service_retries_total spiking alongside latencyRetry-to-request ratio per service
Health checks lyingtraefik_service_server_up = 1 everywhere while 504s flowCross-check server_up against actual 5xx rate
Wrong Docker network (multi-network containers)Intermittent 504s, containers look healthytraefik.docker.network label on the service

Quick checks

These are read-only and safe to run during an incident.

# Which service is producing 504s
curl -s http://localhost:8080/metrics | grep 'traefik_service_requests_total' | grep 'code="504"'

# Backend latency as Traefik sees it (histogram buckets and counts)
curl -s http://localhost:8080/metrics | grep traefik_service_request_duration_seconds

# Entrypoint latency for comparison (isolates Traefik overhead vs backend time)
curl -s http://localhost:8080/metrics | grep traefik_entrypoint_request_duration_seconds

# Are backends passing health checks?
curl -s http://localhost:8080/metrics | grep traefik_service_server_up

# Retry activity on the affected service
curl -s http://localhost:8080/metrics | grep traefik_service_retries_total

# Goroutines and open connections piling up (stuck backend connections)
curl -s http://localhost:8080/metrics | grep -E 'go_goroutines|traefik_open_connections'

Then check the backend itself. A backend that passes /health can still stall on real paths if the health endpoint does not exercise the database or downstream dependencies. Hit the actual slow endpoint directly, bypassing Traefik, and time it. Also search Traefik’s debug logs for the timeout error string: 504s from the forwarding side typically log net/http: timeout awaiting response headers or a read i/o timeout against the backend address.

How to diagnose it

Work the legs of the request in order. Each step eliminates one segment of the path.

  1. Identify the affected service. Group 504s by the service label on traefik_service_requests_total. If 504s span many unrelated services simultaneously, suspect Traefik-side resource pressure (CPU saturation, access log buffer blocking, config rebuild storms) rather than a single slow backend.
  2. Confirm the backend is reachable and selected. Check traefik_service_server_up. If all backends are 0, you are looking at a 503 problem, not a 504 problem. Note that this metric only exists for services with health checks enabled; absence means unmonitored, not healthy.
  3. Compare entrypoint latency to service latency. If traefik_entrypoint_request_duration_seconds is high but the service-level histogram is normal, the time is being spent inside Traefik (TLS, middleware chain, compression, access log buffer blocking). If both are high, the backend is slow. This single comparison splits the search space in half.
  4. Bypass Traefik and time the backend directly. Send the same request to a backend pod or container directly, and time it. If it is slow without Traefik in the path, the problem is the backend: database queries, connection pool exhaustion, a stalled downstream dependency. Go investigate the backend; Traefik is just the messenger.
  5. Match failed durations against configured timeouts. If the direct backend call is fast but Traefik 504s, look at the timeouts on the path. For request bodies (uploads), check the entrypoint readTimeout. For slow first-byte, check responseHeaderTimeout. Failed requests that die at almost exactly 60 seconds are a strong readTimeout signature; check whether Traefik logged the terminal status as 504 or 499.
  6. Check for retry amplification. A rising traefik_service_retries_total concurrent with rising latency is a positive feedback loop: a slow backend gets multiplied traffic, gets slower, and 504s more. Traefik is contributing to the failure it is reporting.
  7. Check goroutine and connection accumulation. If go_goroutines and traefik_open_connections climb while request rate is flat, backends are accepting connections and stalling. This is the goroutine leak pattern that eventually OOM-kills Traefik, and it usually means responseHeaderTimeout is unset (0s, unbounded).
flowchart TD
  A[504 Gateway Timeout] --> B{Entrypoint latency high, service latency normal?}
  B -- Yes --> C[Traefik-side: readTimeout, middleware, log buffer]
  B -- No --> D{Backend slow when called directly?}
  D -- Yes --> E[Backend problem: DB, CPU, downstream dependency]
  D -- No --> F{Timeout config on the path}
  F --> G[readTimeout too low for uploads]
  F --> H[responseHeaderTimeout too low for slow endpoints]
  D -- Stalls, never responds --> I[Unset responseHeaderTimeout: goroutine accumulation]

Metrics and signals to monitor

SignalWhy it mattersWarning sign
traefik_service_requests_total{code="504"}Counts 504s per service, isolates the blast radiusSustained non-zero rate on a production service
traefik_service_request_duration_secondsBackend latency as Traefik sees it; the primary 504 leading indicatorp95/p99 climbing toward your timeout value
traefik_entrypoint_request_duration_secondsCompared with service latency, isolates Traefik overhead from backend timeHigh while service latency is normal
traefik_service_retries_totalRetry amplification multiplies load on an already-slow backendRising together with latency and 504s
traefik_service_server_upDistinguishes “no backends” (503) from “slow backends” (504)All 1s while 504s flow: health checks are lying
go_goroutines / traefik_open_connectionsStuck backend connections accumulate goroutines and FDsMonotonic growth disconnected from traffic
traefik_service_requests_total{code=~"502|503"}Sibling failure modes with different root causesMixed 502/503/504: investigate connectivity and pool health first

Caveat on the latency histograms: the default buckets [0.1, 0.3, 1.2, 5.0] are coarse. If your timeout is 30s or 60s, everything above 5 seconds lands in the top bucket, and percentile estimates will not warn you how close requests are running to the timeout before 504s start.

Fixes

The backend is genuinely slow

Fix the backend. Common root causes visible from the Traefik side: database lock contention or connection pool exhaustion, a degraded downstream service cascading upstream, CPU or memory saturation. Traefik cannot fix this; it can only report it. If the slowness is legitimate and unavoidable for some endpoints (large report generation, exports), those endpoints need a timeout budget that reflects reality rather than a generic default.

The timeout is too aggressive

Raise the timeout on the correct leg, deliberately:

  • For slow uploads dying at 60s, raise or disable readTimeout on the entrypoint that serves them. Disabling (0s) removes the protection entirely, so prefer a value sized to your realistic worst case.
  • For slow first-byte from backends, responseHeaderTimeout in the ServersTransport governs the wait. respondingTimeouts is per entrypoint and applies to every router on it; there is no per-router override. If one route needs a much longer budget, the standard approach is a dedicated entrypoint for that traffic class.

Tradeoff: every timeout you raise is a resource commitment. A 120s timeout means a stuck request holds a goroutine, a connection, and memory for up to 120 seconds. Size timeouts to the workload, not to silence the alert.

The timeout was never set

If responseHeaderTimeout is 0s (unbounded), a backend that accepts connections and stalls will accumulate Traefik goroutines until memory exhaustion. Set a finite responseHeaderTimeout on your ServersTransports. For typical request/response APIs this is cheap insurance; for streaming or long-poll endpoints, set it explicitly high rather than leaving it unbounded.

Retry amplification

If retries are amplifying a slow-backend incident, reduce or disable the retry middleware on the affected service while you fix the root cause. Retries against a latency-degraded backend convert a brownout into an outage.

Timeout chain coordination

Traefik sits in a chain: client, possibly a cloud load balancer, Traefik, backend. Each layer’s timeout should be longer than the one in front of it. When this ordering is violated, intermediate components close connections that downstream components are still using, producing intermittent errors that resist diagnosis. Audit the whole chain when you change any one value.

Prevention

  • Set responseHeaderTimeout explicitly on every ServersTransport. The unbounded default is a goroutine leak waiting for a stalled backend.
  • Alert on the latency-to-timeout gap. Track p95/p99 of traefik_service_request_duration_seconds per service against the configured timeout, not against an arbitrary absolute threshold. A service running at 80 percent of its timeout budget is a 504 incident in rehearsal.
  • Monitor retries as a ratio. traefik_service_retries_total over traefik_service_requests_total per service. Retries during a brownout are how slow backends die completely.
  • Split 5xx alerts by code. 502, 503, and 504 have different root causes, different owners, and different runbooks. Aggregate 5xx alerting guarantees slow, wrong triage.
  • Cross-check health checks against reality. If traefik_service_server_up is all-green while 504s flow, your health endpoint does not exercise the real dependency chain. Make health checks meaningful or distrust them.
  • Baseline per service. A 200ms p95 is excellent for a compute-heavy API and terrible for static file serving. Alert on deviation from per-service baselines, not universal thresholds.

How Netdata helps

  • Netdata charts traefik_service_requests_total split by response code, so 504s are visible per service as a distinct series rather than buried in a 5xx aggregate.
  • The traefik_service_request_duration_seconds histogram is rendered per service, letting you watch latency climb toward the configured timeout before 504s start.
  • Correlating service latency with entrypoint latency on one dashboard answers the “Traefik overhead or backend slowness” question in seconds.
  • Goroutine count and open connections alongside the 504 rate surface the stuck-backend-connection pattern early, before it becomes an OOM kill.
  • Retry rate plotted against request rate makes amplification loops obvious while they are still recoverable.
  • ML-based anomaly detection on per-service latency catches the “slow but not yet timing out” state that static thresholds miss.