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-upstream-cx-connect-fail ▌

Operations Guides

Envoy upstream_cx_connect_fail: failed TCP connections to upstream hosts

cluster.<name>.upstream_cx_connect_fail is a per-cluster counter that increments each time Envoy fails to establish a TCP connection to an upstream host. On a healthy cluster the rate is flat. The threshold for concern is connect_fail / connect_total > 0.05, meaning more than 5% of connection attempts are failing. upstream_cx_total counts all attempts: the connection pool increments it when it creates the client connection, before the connect completes, and separately increments upstream_cx_connect_fail when a connect fails — so the ratio already covers every attempt. Sustained nonzero rates point at one of four root causes: the upstream process is down, the upstream is out of file descriptors, a firewall or ACL changed, or the upstream listen backlog is overflowing.

The critical first distinction is between upstream_cx_connect_fail and upstream_cx_connect_timeout. A connect failure is an immediate rejection: Envoy sent SYN and received RST. The port is closed, nothing is listening, the kernel returned ECONNREFUSED. A connect timeout is silence: SYN went out, no SYN-ACK came back. That points at a network partition, a firewall drop, or a saturated listen backlog. These two counters look similar in aggregate dashboards but they point at different layers of the stack.

When a connection fails, the request surfaces to the client as a 503 with response flag UF in the access log. Envoy sets the response code detail to upstream_reset_before_response_started{connection_failure}. If outlier detection is configured with split_external_local_origin_errors: true, repeated local-origin failures increment consecutive_local_origin_failure (default 5) and the host is ejected from the load balancing pool. A single host being ejected is normal resilience. A cluster-wide spike is an active incident.

What this means

The counter is exposed at cluster.<name>.upstream_cx_connect_fail via the admin endpoint (/stats or /stats/prometheus). In Istio sidecar mode, the admin port is typically 15000, not 9901. Because it is a counter, you care about the rate of change, not the absolute value. A cluster that has been running for weeks will have accumulated nonzero value from transient failures during deploys and restarts.

A cluster doing 10,000 new connections per second with a 3% failure rate has a bigger problem than a cluster doing 50 connections per second with a 20% failure rate, because the absolute failure volume is 30x higher. This is why ratio-based alerting is more portable than absolute thresholds.

Connection failures feed into two downstream effects:

  • Client-visible errors. Each failed connection that cannot be retried produces a 503 with response flag UF. If retries are configured, Envoy may try another host. If all hosts fail, the client sees the 503.
  • Outlier detection ejection. With split_external_local_origin_errors: true, connect failures count as local-origin failures. After consecutive_local_origin_failure (default 5) consecutive failures, the host is ejected. Check cluster.<name>.outlier_detection.ejections_active to see whether Envoy has already removed the failing host from rotation.

Common causes

CauseWhat it looks likeFirst thing to check
Upstream process down or not listeningImmediate RST on every connection attempt to a specific host. membership_healthy drops if health checks are configured.Is the process running and bound to the expected port on that host?
Upstream FD exhaustionIntermittent failures that worsen under load. No single host is fully down, but failures cluster during traffic peaks.FD count on the upstream host versus its ulimit.
Firewall or ACL changeSudden spike across all hosts in a subnet, AZ, or security group. Often correlates with a deployment or infrastructure change window.Recent security group, iptables, or network policy changes.
Listen backlog overflowFailures and timeouts together under traffic spikes. The upstream process is running but cannot accept connections fast enough.somaxconn and tcp_max_syn_backlog on the upstream host, plus the application listen backlog.
Conntrack exhaustion (Kubernetes)Intermittent upstream_cx_connect_fail across multiple clusters with no clear cause in Envoy stats.nf_conntrack_count versus nf_conntrack_max on the node.

Quick checks

All commands below are read-only. Adjust the admin port (9901 default, 15000 in Istio sidecar) and cluster name to match your deployment.

# Check connect_fail for a specific cluster
curl -s http://localhost:9901/stats | grep 'cluster.my_cluster.upstream_cx_connect_fail'

# Get connect_total to compute the failure ratio
curl -s http://localhost:9901/stats | grep 'cluster.my_cluster.upstream_cx_total'

# Distinguish from connect_timeout (different root cause)
curl -s http://localhost:9901/stats | grep 'cluster.my_cluster.upstream_cx_connect_timeout'

# Check active upstream host health
curl -s http://localhost:9901/stats | grep 'cluster.my_cluster.membership_healthy'

# Check whether outlier detection has already ejected failing hosts
curl -s http://localhost:9901/stats | grep 'cluster.my_cluster.outlier_detection.ejections_active'

# Per-host health status for the cluster
curl -s http://localhost:9901/clusters?format=json | jq '.cluster_statuses[].host_statuses[].health_status'

# Check upstream TLS errors (if mTLS is in use)
curl -s http://localhost:9901/stats | grep 'cluster.my_cluster.ssl.connection_error'

The UF response flag confirms connection failure as the source of 503s, but it is only available in access logs, not as an aggregate stat. Grep your access log pipeline for the flag if you have one.

How to diagnose it

flowchart TD
    A["upstream_cx_connect_fail rising"] --> B{"connect_timeout also rising?"}
    B -- "Yes" --> C["Network path: firewall drop,
partition, or backlog overflow"] B -- "No" --> D{"Scope?"} D -- "Single host" --> E["Process down or FD exhaustion"] D -- "Cluster-wide" --> F["ACL change or conntrack exhaustion"] C --> G["Check connect_ms and network path"] E --> H["Check process liveness and FD count"] F --> I["Check security groups and conntrack table"]
  1. Confirm the signal is real. Sample upstream_cx_connect_fail and upstream_cx_total at two points 10 to 30 seconds apart. Compute the delta and the ratio. A single nonzero sample from hours ago is not an incident. A rising rate is.

  2. Distinguish from connect_timeout. If upstream_cx_connect_timeout is also rising, the problem is in the network path or the listen backlog, not the upstream process. A pure connect_fail with zero timeout means the upstream is actively refusing connections via RST.

  3. Determine scope. Use /clusters?format=json to check per-host health status. If only one or two hosts are failing, the problem is host-local (process crash, FD exhaustion). If all hosts in a subnet or AZ are failing simultaneously, the problem is in the network path.

  4. Check upstream process liveness. On the failing host, verify the process is running and listening on the expected port. A process that crashed, was OOM-killed, or is still initializing will produce immediate RST on connection attempts.

  5. Check upstream OS-level constraints. On the failing host, check FD utilization (ls /proc/<pid>/fd | wc -l versus the ulimit) and listen backlog settings (net.core.somaxconn, net.ipv4.tcp_max_syn_backlog). FD exhaustion produces intermittent failures that worsen under load. Backlog overflow produces failures and timeouts together during traffic spikes.

  6. Check the network path. If the scope is cluster-wide or subnet-wide, check for recent firewall, security group, or network policy changes. In Kubernetes, check conntrack table utilization. Conntrack exhaustion drops new connections silently and manifests as intermittent upstream_cx_connect_fail with no clear cause in Envoy stats.

  7. Verify outlier detection state. Check outlier_detection.ejections_active. If Envoy has already ejected the failing hosts, the cluster may be operating with reduced capacity. If ejections are climbing toward a majority of the cluster, you are at risk of a mass ejection cascade. See Envoy outlier detection mass ejection for that pattern.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
cluster.<name>.upstream_cx_connect_failThe primary signal. Counts TCP connect failures.Rate rising, or ratio to upstream_cx_total above 0.05.
cluster.<name>.upstream_cx_connect_timeoutDistinguishes network silence from immediate RST.Rising alongside connect_fail indicates backlog or partition.
cluster.<name>.upstream_cx_connect_msTCP connect latency. Reveals SYN backlog pressure before failures start.P99 climbing above same-zone baseline (typically under 2ms).
cluster.<name>.membership_healthyActive health check results.Dropping while connect_fail rises confirms host-level failure.
cluster.<name>.outlier_detection.ejections_activePassive health ejection state.Rising alongside connect_fail means Envoy is already removing hosts.
cluster.<name>.ssl.connection_errorTLS protocol failures when upstream TLS is configured. Can increment connect_fail.Spike after cert rotation or CA change.
Response flag UFConfirms the 503 origin is a connection failure, not a circuit breaker or route miss.Sustained nonzero UF rate in access logs.

Fixes

Upstream process not listening

Confirm the process is running and bound to the expected port. If it crashed, check its logs for the crash cause (OOM, panic, config error). Restart it, but investigate why it crashed. A process that crashes repeatedly under load has a resource exhaustion or bug problem that a restart will not fix.

Upstream FD exhaustion

Check FD usage on the upstream host. If it is at or near the ulimit, the process cannot accept new connections. Raise the ulimit (ulimit -n or the systemd unit’s LimitNOFILE) to give headroom. Also investigate whether the upstream has a connection leak: a process that accumulates open FDs without releasing them will hit any limit eventually. In Kubernetes, verify the actual FD limit inside the container, which may be restricted by securityContext or LimitRange below the node default.

Firewall or ACL change

Identify the change window and revert the rule. If the change was intentional (security hardening), add an exception for the Envoy-to-upstream path. Test connectivity directly from the Envoy host to confirm the path is open before declaring the incident resolved.

Listen backlog overflow

The upstream process is running but its kernel cannot queue incoming SYNs fast enough. Check net.core.somaxconn and net.ipv4.tcp_max_syn_backlog on the upstream host. Both should be set to match the expected peak connection rate. The application’s listen() call must also specify a backlog at least as large, or the kernel setting has no effect.

Conntrack exhaustion

In Kubernetes, conntrack table exhaustion on the node drops new connections silently. Check cat /proc/sys/net/netfilter/nf_conntrack_count versus cat /proc/sys/net/netfilter/nf_conntrack_max. If the table is full, raise net.netfilter.nf_conntrack_max at the node level. This is a node-level sysctl, not a pod-level setting.

Prevention

  • Alert on the ratio, not the absolute counter. A fixed threshold on upstream_cx_connect_fail fires differently on quiet and busy clusters. The ratio connect_fail / connect_total > 0.05 is portable across traffic patterns.
  • Monitor upstream FD usage as a capacity signal. FD exhaustion is a cliff edge with no graceful degradation. Track the ratio of used to limit on upstream hosts so you have runway before failures start.
  • Use both active health checks and outlier detection. Health checks detect hosts that are fully down. Outlier detection catches hosts that are partially degraded. They are complementary, not redundant.
  • Monitor conntrack utilization in Kubernetes. Node-level conntrack exhaustion produces symptoms that look like upstream failure but have no signal in Envoy stats.
  • Track upstream_cx_connect_ms as a leading indicator. Rising connect latency often precedes outright failures when the upstream SYN backlog is filling.
  • Keep access logs with %RESPONSE_FLAGS% enabled. Response flags are the only way to confirm the origin of a 503. They are not available as aggregate stats.

How Netdata helps

  • Per-second granularity on upstream_cx_connect_fail rate catches spikes that longer scrape intervals miss, especially during short-lived deployment windows or traffic bursts.
  • Correlate connect_fail with connect_timeout in a single view to distinguish immediate RST from network silence without switching between dashboards.
  • Cross-reference with membership_healthy and outlier_detection.ejections_active to determine whether Envoy has already ejected failing hosts or whether the cluster is at risk of a mass ejection cascade.
  • Track upstream_cx_connect_ms alongside connect_fail to separate slow-but-succeeding connections from hard failures.
  • ML anomaly detection on the failure ratio surfaces abnormal patterns before they cross a static threshold, which matters because normal failure rates vary with traffic volume and deploy cadence.