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 / envoy / envoy-504-upstream-timeout ▌

Operations Guides

Envoy 504 upstream timeout: upstream_rq_timeout, per-try timeouts, and the UT flag

A 504 from Envoy with response flag UT means the upstream request timeout fired: Envoy sent the request to a backend and did not receive a complete response within the configured budget. The backend may be genuinely slow, the timeout may be too tight for the workload, or a filter may be interfering with the timeout clock. Each case needs a different fix.

One diagnostic trap: when the route timeout fires, Envoy aborts the request and increments upstream_rq_timeout, but the aborted request is not recorded in the upstream_rq_time histogram at all — the histogram only contains requests whose upstream response was fully received. A per-try timeout that is followed by a successful retry does appear in the histogram, and the value recorded is the total wall-clock time including the timed-out attempt and retry back-off. Cross-referencing upstream_rq_timeout against the histogram is therefore required to distinguish genuinely slow backends from retry overhead shaping the distribution.

What this means

Envoy applies two layers of upstream timeout:

  • Route timeout (overall budget): the total time allowed for the entire request, including all retry attempts. Tracked by the upstream_rq_timeout counter when it fires. Configured via the route’s timeout field or the x-envoy-upstream-rq-timeout-ms request header. If not set, the default is 15 seconds. This timer does not start until the entire downstream request has been received, which matters for slow-upload clients and streaming requests.
  • Per-try timeout (per attempt): the time allowed for a single attempt to an upstream host. Tracked by the upstream_rq_per_try_timeout counter. Configured via retry_policy.per_try_timeout or the x-envoy-upstream-rq-per-try-timeout-ms header. The per-try timeout must be less than the route timeout: Envoy explicitly ignores (clears) any per_try_timeout that is greater than or equal to the route timeout, so no per-try timer is armed in that case.

When the route timeout fires, Envoy returns 504 with response flag UT. When the per-try timeout fires, Envoy retries the request (if retries are configured and the retry budget allows) and only returns a 504 if all retries are exhausted or the route timeout fires first. Envoy does not retry when the route timeout itself is exceeded. If you want retry-on-slow, you must use the per-try timeout.

For long-lived streams (gRPC, SSE, WebSocket), the route timeout is the wrong tool. Set timeout: 0 on the route and use max_stream_duration and idle_timeout instead. When the max stream duration is reached, the upstream_rq_max_duration_reached counter increments.

flowchart TD
    A[Downstream request fully received] --> B[Route timeout timer starts]
    B --> C[Upstream attempt begins]
    C --> D{Per-try timeout fires?}
    D -->|No, response received| E[Forward response - success]
    D -->|Yes| F{Retries remain and route budget left?}
    F -->|Yes| C
    F -->|No| G[Return 504 with UT flag]
    B --> H{Route timeout fires first?}
    H -->|Yes| G

Common causes

CauseWhat it looks likeFirst thing to check
Genuinely slow backendupstream_rq_time P99 climbing before the ceiling; upstream_rq_timeout rate rising; backend metrics show saturationBackend GC, DB query time, CPU, connection pool
Timeout too tight for workloadupstream_rq_time clusters exactly at the configured timeout; upstream_rq_timeout steady but backend is healthyRoute config timeout value vs. actual backend P99
Per-try timeout with retriesupstream_rq_per_try_timeout nonzero; upstream_rq_retry elevated; downstream sees higher latency from retry overheadretry_policy.per_try_timeout vs. route timeout
Blocking filter interferenceTimeouts fire even when upstream is fast; correlated with filter execution (Lua sleep, sync ext_authz)Filter config for blocking operations
Streaming request hitting route timeout504 UT on gRPC/SSE/WebSocket; route timeout not set to 0Route timeout value for streaming routes

Quick checks

# Overall timeout counter for the cluster
curl -s http://localhost:9901/stats | grep 'upstream_rq_timeout'

# Per-try timeout counter
curl -s http://localhost:9901/stats | grep 'upstream_rq_per_try_timeout'

# Max stream duration counter (streaming workloads)
curl -s http://localhost:9901/stats | grep 'upstream_rq_max_duration_reached'

# Latency histogram (includes retry-inflated requests, excludes aborted requests)
curl -s http://localhost:9901/stats/prometheus | grep 'envoy_cluster_upstream_rq_time'

# Retry behavior alongside timeouts
curl -s http://localhost:9901/stats | grep -E 'upstream_rq_retry'

# Upstream host health (slow backend vs. dead backend)
curl -s http://localhost:9901/stats | grep 'membership_healthy'

# Circuit breaker state (saturation can look like slowness)
curl -s http://localhost:9901/stats | grep 'circuit_breakers'

# Connection establishment time (network vs. app latency)
curl -s http://localhost:9901/stats | grep 'upstream_cx_connect_ms'

If running in Istio sidecar mode, replace port 9901 with 15000.

How to diagnose it

  1. Confirm UT is the response flag. Check access logs for the %RESPONSE_FLAGS% field. A 504 without UT may be forwarded from the upstream (the backend itself returned 504), which is a different problem. Only UT means Envoy generated the timeout.

  2. Identify which timeout fired. Compare upstream_rq_timeout (route budget) against upstream_rq_per_try_timeout (per attempt). If only upstream_rq_per_try_timeout is incrementing and upstream_rq_retry is also elevated, the per-try timeout is the active constraint and retries are masking individual slow attempts.

  3. Look for retry-inflated latency in upstream_rq_time. Requests that survive a per-try timeout and succeed on a retry appear in the histogram at their total wall-clock duration, so a retry-heavy route shows an inflated tail that is not genuine upstream latency. Cross-reference: if upstream_rq_per_try_timeout and upstream_rq_retry are elevated at the same time as the histogram’s tail lengthens, retries are shaping the distribution. Aborted requests (route timeout, upstream_rq_timeout) do not appear in the histogram at all.

  4. Determine if the backend is genuinely slow. Compare upstream_rq_time P50/P99 against the configured timeout. If P99 is well below the timeout and only a small fraction times out, the backend is mostly healthy with a slow tail. If P50 approaches the timeout, the entire distribution has shifted and the backend is in distress.

  5. Check for blocking filters. If timeouts fire even when the backend is fast (test with a direct curl to the upstream), a blocking filter may be consuming wall-clock time that counts against the route timeout budget. Known case: a Lua filter with a blocking sleep blocks the worker thread, preventing timely processing of upstream responses. This is a documented limitation, not a bug.

  6. Check for streaming requests on routes with a non-zero timeout. If the affected traffic is gRPC, SSE, or WebSocket, the route timeout should be 0. A non-zero route timeout on a streaming route causes premature 504 UT because the timer starts after the request is received but the stream may legitimately run for minutes or hours.

  7. Check the UT with 200 status edge case. If a timeout fires after response headers have been written downstream, Envoy sets response_flag=UT but the status remains 200. Once headers are sent, the status code cannot be changed. If you see UT in logs with status 200, the timeout fired mid-response after headers were committed.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
upstream_rq_timeoutCount of requests that hit the route timeoutSustained nonzero rate on a cluster
upstream_rq_per_try_timeoutCount of requests that hit the per-try timeoutElevated rate combined with high upstream_rq_retry
upstream_rq_time (histogram)Latency distribution of completed requests (excludes aborted requests; includes retry-inflated durations)Tail widening while upstream_rq_per_try_timeout and upstream_rq_retry are elevated
upstream_rq_max_duration_reachedCount of streams closed by max stream durationNonzero on streaming routes signals duration config mismatch
upstream_rq_retry / upstream_rq_retry_successWhether retries are helping or amplifyingretry / total > 0.1 or retry_success / retry < 0.5
membership_healthyBackend availability (slow vs. dead)Dropping ratio indicates upstream failure, not just slowness
upstream_cx_connect_msNetwork latency vs. application latencyElevated connect time points to network, not backend processing
circuit_breakers.*.cx_open / rq_pending_openSaturation causing queuing that looks like slownessAny *_open = 1 sustained

Fixes

Genuinely slow backend

If upstream_rq_time shows the backend is slow (P50/P99 trending up) and upstream_rq_timeout is also incrementing, the fix is in the backend, not Envoy. Common causes: database contention, GC pauses, resource saturation, or a scaling event that left too few endpoints handling the load.

Do not raise the timeout to mask the slowness. This delays the 504 but holds connections longer, which can trigger connection pool exhaustion and circuit breaker trips. See Envoy connection pool exhaustion: a slow upstream that fills the pool for the cascade pattern.

If the backend has a known bimodal latency distribution (cache hit vs. cache miss), tune the timeout to accommodate the slow path or split the route so each path has an appropriate budget.

Timeout too tight for the workload

If the backend is healthy (membership_healthy stable, backend P99 within normal range) but upstream_rq_timeout is incrementing, the timeout is too low — requests are being aborted at the timeout and never appearing in the histogram.

Before raising it, measure the actual backend latency distribution. Set the route timeout to at least 2x the backend P99 under normal load to accommodate variance. The default 15-second timeout is a reasonable starting point for request-response APIs but is wrong for:

  • APIs with heavy computation (may need 30-60s)
  • File upload/download endpoints (dependent on client speed and body size)
  • Streaming endpoints (set to 0, use max_stream_duration)

Per-try timeout and retry configuration

If upstream_rq_per_try_timeout is the active constraint and retries are firing, check:

  • The per-try timeout must be less than the route timeout or it has no practical effect.
  • Each retry consumes part of the overall route timeout budget. If per-try is 5s and route is 15s, you get at most 3 attempts.
  • If retries rarely succeed (upstream_rq_retry_success / upstream_rq_retry < 0.5), retries are adding load without helping. Reduce the retry count or disable retries for this route.
  • Retrying on non-idempotent requests (POST, PUT) can cause duplicate operations. Review the retry_on policy.

Blocking filter interference

If timeouts fire even when the backend is fast, inspect the filter chain for blocking operations. The known case is a Lua filter with a long sleep that blocks the worker thread. Any wall-clock time consumed by the blocking filter counts against the route timeout budget, leaving less time for the upstream to respond.

Remove the blocking operation. Envoy filters must be non-blocking. If you need to call an external service, use the async API or a filter designed for async I/O.

Streaming requests

For gRPC, SSE, WebSocket, or any long-lived stream, set timeout: 0 on the route and configure max_stream_duration and idle_timeout. The route timeout is designed for request-response semantics and starts after the full downstream request is received, which is incorrect for streaming where the “request” may be a single frame opening a long-lived stream.

If upstream_rq_max_duration_reached is incrementing on streaming routes, the max_stream_duration is too low for the stream lifetime. Raise it or set it with margin for the maximum expected stream duration.

Prevention

  • Set explicit timeouts on every route. Do not rely on the 15-second default. Different endpoints have different latency profiles.
  • Set timeout: 0 on streaming routes. Use max_stream_duration and idle_timeout for streams.
  • Monitor the upstream_rq_timeout rate as a ratio of total requests. A baseline timeout rate of 0.01% may be normal for a service with a long tail. A sudden increase signals a change in backend behavior or traffic patterns.
  • Track the upstream_rq_time histogram shape. A widening tail paired with elevated upstream_rq_per_try_timeout and upstream_rq_retry points to retry overhead, not backend latency; a rising upstream_rq_timeout rate with a stable histogram means requests are being aborted at the timeout before completion.
  • Configure custom histogram buckets aligned with your SLOs. The default buckets are 0.5, 1, 5, 10, 25, 50, 100, 250, 500, 1000, 2500, 5000, 10000, 30000, 60000, 300000, 600000, 1800000, and 3600000 ms, and are too wide to distinguish between, say, a 2s and a 3s timeout without custom boundaries.
  • Review retry policies for amplification risk. If per-try timeouts cause retries, the upstream sees 2-3x load during degradation. See Envoy circuit breaker open: cx_open, rq_pending_open, and fast-failed requests for how saturation interacts with retries.

How Netdata helps

  • Per-second resolution on upstream_rq_timeout and upstream_rq_per_try_timeout pinpoints the exact second timeouts began, narrowing the incident window for correlation with backend deploys, traffic spikes, or config changes.
  • The upstream_rq_time histogram with the artificial ceiling is visible alongside the timeout counters on the same dashboard, so you can distinguish a genuine latency shift from the timeout shaping the distribution without manual cross-referencing.
  • ML anomaly detection on latency percentiles flags a shifting P50 or P99 before it reaches the timeout, giving early warning of backend degradation.
  • Correlation with membership_healthy, circuit breaker state, and upstream_cx_connect_ms on a single timeline separates “backend is slow” from “backend is unreachable” from “network is slow” without switching tools.