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 / postgres / postgres-connection-refused

Operations Guides

PostgreSQL connection refused: pg_hba, listen_addresses, and TCP diagnosis

An application cannot reach PostgreSQL. The client reports either “Connection refused,” a hang until timeout, or “no pg_hba.conf entry.” These three symptoms point to different layers. Mixing them up leads to wasted restarts, overly broad firewall rules, or pg_hba.conf edits that never take effect. Work through the transport layer first, then the network path, then the authorization layer.

PostgreSQL defaults to binding only to the loopback interface. A fresh installation or container image rejects remote TCP attempts before pg_hba.conf is consulted. Changing listen_addresses requires a restart; changing pg_hba.conf only requires a reload. The diagnostic sequence is: confirm the listener, confirm the path, then confirm the rule.

What this means

A PostgreSQL connection spans three layers. The transport layer: the postmaster binds to an address and port. The default listen_addresses is localhost, so remote TCP attempts fail with ECONNREFUSED unless this is changed. The network path: firewalls, cloud security groups, and routing must allow the SYN packet to reach the port. If they do not, the client sees a timeout. The authorization layer: once the TCP handshake succeeds, pg_hba.conf decides whether the source IP, database, and user are allowed. A mismatch produces a PostgreSQL-level error such as “no pg_hba.conf entry for host,” not an OS-level connection refused.

The Docker official image also defaults to localhost, so publishing the container port does not help unless you override the setting inside the container. On IPv4-only hosts, setting listen_addresses to :: can log “could not bind IPv6 address: Address not available.” PostgreSQL skips IPv6 listening in that case, so IPv6 clients cannot connect even if :: is listed.

Because these layers fail with different symptoms, the fix for one will not help the other. Restarting PostgreSQL because of a firewall timeout wastes minutes. Adding a pg_hba.conf rule when listen_addresses is still localhost will never work.

flowchart TD
    A[Client connection attempt] --> B{What does the client report?}
    B -->|Connection refused| C[Check listen_addresses
and port binding] B -->|Timeout| D[Check firewall and
network path] B -->|No pg_hba entry| E[Check pg_hba.conf
rule order and match] C --> F[Verify with ss -tlnp
and SHOW port] D --> G[Check OS firewall
and cloud security groups] E --> H[Query pg_hba_file_rules
and SHOW hba_file]

Common causes

CauseWhat it looks likeFirst thing to check
listen_addresses set to localhost onlyRemote TCP fails; local psql over Unix socket worksSHOW listen_addresses; on the server
Wrong port after side-by-side installError mentions an unexpected port, or the client connects to a different PostgreSQL versionSHOW port; on the target instance
OS or cloud firewall blocks 5432Connection times out or is silently dropped; no PostgreSQL log entry appearsss -tlnp on the server, then cloud security group rules
pg_hba.conf missing a host recordClient sees “no pg_hba.conf entry” after TCP connectsSELECT * FROM pg_hba_file_rules WHERE error IS NULL;
pg_hba.conf record order wrongA specific rule exists but is shadowed by an earlier reject ruleLine order; the first matching record wins
Docker or container binding to 127.0.0.1Published ports do not help; remote connections still failContainer listen_addresses override, often *
IPv6-only client to IPv4-only listenerIntermittent or consistent refusal depending on client address familyWhether listen_addresses includes :: and whether the host has IPv6 loopback

Quick checks

Run these read-only checks before changing any configuration.

# Verify the bound address and port from inside PostgreSQL
psql -c "SHOW listen_addresses;" -c "SHOW port;"
# Show the active pg_hba.conf path and all parsed rules
psql -c "SHOW hba_file;" -c "SELECT line_number, type, database, user_name, address, auth_method FROM pg_hba_file_rules WHERE error IS NULL;"
# Check for syntax errors in pg_hba.conf that prevent rule loading
psql -c "SELECT line_number, error FROM pg_hba_file_rules WHERE error IS NOT NULL;"
# Inspect listening sockets at the OS level
ss -tlnp | grep -E ':5432\b'
# Test TCP reachability from the client without using the PostgreSQL protocol
nc -vz <hostname> 5432
# Identify the actual server IP and port this session reached
psql -c "SELECT inet_server_addr(), inet_server_port();"

How to diagnose it

Follow this sequence to avoid hopping between layers.

  1. Classify the client error. An immediate “Connection refused” means the OS received the SYN and returned RST because nothing is listening on that IP:port. A hang followed by timeout means the SYN never reached a listener, usually because a firewall or security group dropped it. A “no pg_hba.conf entry” or “password authentication failed” means TCP succeeded and PostgreSQL is actively rejecting the connection at the auth layer.

  2. Confirm the listener. Run SHOW listen_addresses;. If the value is localhost, the server rejects remote TCP attempts. This parameter accepts a comma-separated list of hostnames or IP addresses. The special value * binds all interfaces. An empty string disables TCP entirely. Changing this parameter requires a full server restart; reloading is not sufficient.

  3. Confirm the port. Run SHOW port;. Multiple PostgreSQL major versions installed on the same host sometimes use different default ports. If the client points to 5432 but the instance listens on 5433, the client gets a connection refused even though the server is healthy.

  4. Check OS-level binding. Use ss -tlnp or netstat -tlnp to verify that a process listens on the expected interface and port. If PostgreSQL logs contain “could not bind IPv6 address: Address not available,” the host lacks IPv6 support and the server skipped IPv6 listening. This explains why IPv6 clients cannot connect even if listen_addresses includes ::.

  5. Test the network path. From the client, run nc -vz <server> <port>. Refusal means the packet reached the OS but nothing is bound there. Timeout means check host-level firewalls (ufw, firewalld) and cloud security groups. An open OS-level rule is not enough if the cloud layer blocks it.

  6. Inspect pg_hba.conf. Run SHOW hba_file; to confirm you are editing the file the server reads. Query pg_hba_file_rules to see the parsed view (available since PostgreSQL 10). Rows with a non-null error column indicate malformed lines that PostgreSQL skipped. Check order carefully: records are evaluated top-down, and the first match wins. A broad reject rule above a narrow allow rule silently blocks traffic.

  7. Apply the correct activation method. If you changed pg_hba.conf, activate it with SELECT pg_reload_conf(); or pg_ctl reload. Existing connections are not dropped. If you changed listen_addresses, schedule a restart. In a container, verify that the startup logic overrides listen_addresses; the official postgres image defaults to localhost, and publishing the port with -p does not change the bind address inside the container.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
pg_stat_activity connection countA sudden drop to near-zero after a restart can indicate the listener failed to bind or clients cannot reconnectActive connections far below baseline
PostgreSQL log entries containing “could not bind”Reveals listen_addresses or port conflicts that prevent the postmaster from opening the socketAny occurrence after startup or restart
pg_hba_file_rules.errorSyntax errors in pg_hba.conf silently invalidate lines, causing unexpected rejectionsNon-null error values after a reload
OS listen socket state (ss -tlnp)Confirms the kernel actually has a listener on the expected interfaceMissing entry for the configured port
Client-side connection timeout rateDistinguishes network-path drops from auth-layer rejectionsTimeouts increasing while refused errors stay flat

Fixes

listen_addresses excludes the client

Change listen_addresses to the interface IP, or * to accept from all interfaces. Prefer explicit interface addresses in security-sensitive environments because * exposes PostgreSQL on every attached network. After changing this parameter, restart PostgreSQL.

Tradeoff: Restarting drops existing connections. Plan for a maintenance window or apply the change to a replica during failover.

Firewall or security group blocks the port

Open TCP to the client subnet at the OS firewall layer and at any cloud network layer. Restrict the source CIDR to the smallest necessary range. Avoid opening 5432 to 0.0.0.0/0.

Tradeoff: Tighter CIDR ranges require maintenance when client IPs change, but broad rules increase attack surface.

pg_hba.conf has no matching entry

Add a record that matches the client source IP, target database, and user. The standard record format includes TYPE, DATABASE, USER, ADDRESS, and METHOD fields. Use hostssl if TLS is required, or host for either SSL or non-SSL depending on your threat model. Prefer scram-sha-256 for password authentication. MD5 is deprecated; migrate away from it if still in use.

Tradeoff: Adding host all all 0.0.0.0/0 scram-sha-256 is convenient but removes network-level compartmentalization. Prefer multiple specific rules over one broad rule.

pg_hba.conf record order blocks valid traffic

Move specific allow rules above generic reject rules. pg_hba.conf is read top-down and the first match terminates evaluation. A common mistake is placing a default reject line above application-specific allow rules.

Tradeoff: None. Correct ordering is strictly safer and more correct.

Container image binds to localhost

Override listen_addresses inside the container to * via a custom postgresql.conf or an environment variable that your entrypoint respects. Publishing the container port with -p 5432:5432 only maps the host port; it does not change what address the server binds to inside the container.

Tradeoff: Binding to * inside a container is usually acceptable because the container network namespace is already isolated, but verify that the orchestrator or host firewall enforces the desired network boundaries.

Prevention

  • Explicit binding. Set listen_addresses to explicit interface IPs rather than * whenever possible. Document why each IP is listed.
  • Version control for pg_hba.conf. Track pg_hba.conf in Git or configuration management. After every reload, run SELECT * FROM pg_hba_file_rules WHERE error IS NOT NULL;.
  • Staging reload tests. Test pg_hba.conf reloads in staging. Syntax errors do not prevent reload, but PostgreSQL skips malformed lines.
  • Client-side validation. After network or auth changes, run nc -vz from an application host, then connect with psql. Test reachability and authorization separately.
  • Bind failure monitoring. Monitor PostgreSQL logs for “could not bind” messages. These indicate port conflicts or IPv6 dual-stack issues.

How Netdata helps

  • Correlate pg_stat_activity counts with system TCP metrics to distinguish a saturated listener from an absent one.
  • Detect PostgreSQL log anomalies, including bind failures and pg_hba.conf reload events.
  • Track connection state breakdowns (active, idle, etc.) to spot drops after configuration changes.
  • Alert on rapid connection metric changes that accompany listener or auth misconfiguration.
The Netdata solution

PostgreSQL monitoring with Netdata

Netdata monitors PostgreSQL with per-second metrics, pre-built dashboards, and ML-powered anomaly detection. Correlate connection saturation, lock waits, autovacuum progress, replication lag, and checkpoint I/O against the rest of your stack so you catch the incidents in these runbooks before they page anyone.