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-table-bloat

Operations Guides

PostgreSQL table bloat: detection, measurement, and remediation

Table bloat appears as tables growing while row counts stay flat, sequential scans slowing despite indexes, and disk alarms that do not track business growth. PostgreSQL’s MVCC writes new tuple versions instead of overwriting old ones; every UPDATE leaves a dead row and every DELETE leaves invisible garbage. VACUUM reclaims that space for reuse within the file, but plain VACUUM does not shrink the relation on disk. When dead tuples outpace cleanup, a table can become several times larger than its logical content.

Not all bloat is harmful. A table with steady churn can maintain persistent bloat that improves write performance because PostgreSQL reuses free space faster than it allocates new pages. The danger is runaway growth: tables swell past their working-set memory footprint, pressure the buffer cache, and force index scans through fragmented leaf pages. Distinguish harmless steady-state bloat from pathological growth, measure it accurately, and remediate without taking the table offline during peak traffic.

This guide covers lightweight detection with catalog statistics, exact measurement with pgstattuple, remediation with pg_repack or planned VACUUM FULL, and prevention through per-table autovacuum tuning.

What this means

Table bloat is the difference between a table’s physical size and the space required to store its live tuples. It consists of dead tuples awaiting VACUUM, free space that VACUUM has marked reusable, and page fragmentation. The canonical formula using pgstattuple is (table_len - tuple_len) / table_len * 100. Ratios above 30-40 percent often warrant intervention, though the threshold depends on table size, churn rate, and whether the working set still fits in memory.

flowchart TD
    A[Measure bloat with pgstattuple] --> B{Can table be locked?}
    B -->|Maintenance window| C[VACUUM FULL]
    B -->|Must stay online| D{Has PK or unique NOT NULL index?}
    D -->|Yes| E[pg_repack]
    D -->|No| F[pg_squeeze or scheduled rewrite]
    C --> G[Re-run pgstattuple to verify]
    E --> G
    F --> G

Common causes

CauseWhat it looks likeFirst thing to check
Update-heavy workload with default autovacuumn_tup_upd » n_tup_ins, dead tuple ratio climbingpg_stat_user_tables.last_autovacuum and autovacuum_vacuum_scale_factor
Delete-heavy batch job without post-load vacuumn_dead_tup tracks n_tup_del, table size jumps after ETLlast_autovacuum timestamp and manual VACUUM schedule
Long transaction blocking VACUUMn_dead_tup growing despite active autovacuum workerspg_stat_activity for idle in transaction sessions older than the last vacuum
Autovacuum too conservative for large tableTable has billions of rows; 20% threshold is never reachedautovacuum_vacuum_scale_factor multiplied by table cardinality
Indexed column updates disabling HOTHigh n_tup_upd but low n_tup_hot_updfillfactor and whether updated columns are indexed

Quick checks

pg_stat_user_tables counters accumulate until reset; on a newly promoted replica or after a statistics reset, timestamps and ratios may look misleading until the workload stabilizes.

# Dead tuple leaderboard: lightweight check without table scans
psql -c "SELECT schemaname, relname, n_live_tup, n_dead_tup,
       round(n_dead_tup::numeric / nullif(n_live_tup + n_dead_tup, 0) * 100, 2) AS dead_pct
FROM pg_stat_user_tables
WHERE n_dead_tup > 10000
ORDER BY n_dead_tup DESC LIMIT 10;"
# Idle-in-transaction blockers that prevent VACUUM progress
psql -c "SELECT pid, usename, state, state_change, query
FROM pg_stat_activity
WHERE state = 'idle in transaction'
  AND state_change < NOW() - INTERVAL '5 minutes';"
# Last autovacuum age per table
psql -c "SELECT schemaname, relname,
       last_autovacuum, last_vacuum,
       now() - last_autovacuum AS since_autovacuum
FROM pg_stat_user_tables
WHERE last_autovacuum IS NULL
   OR last_autovacuum < NOW() - INTERVAL '24 hours'
ORDER BY n_dead_tup DESC LIMIT 10;"
# Table size ranking
psql -c "SELECT schemaname, relname,
       pg_size_pretty(pg_total_relation_size(relid)) AS total_size
FROM pg_stat_user_tables
ORDER BY pg_total_relation_size(relid) DESC LIMIT 10;"
# Install pgstattuple for exact measurement
psql -c "CREATE EXTENSION IF NOT EXISTS pgstattuple;"
# Freeze age per table: wraparound indicator independent of dead tuple counts
psql -c "SELECT n.nspname AS schema, c.relname,
       age(c.relfrozenxid) AS xid_age,
       round(100 * age(c.relfrozenxid) / 2147483647.0, 2) AS wraparound_pct
FROM pg_class c
JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind = 'r'
  AND age(c.relfrozenxid) > 500000000
ORDER BY age(c.relfrozenxid) DESC LIMIT 10;"

How to diagnose it

  1. Run the dead tuple leaderboard to identify candidates. A high n_dead_tup relative to n_live_tup signals vacuum lag.
  2. Check pg_stat_activity for idle in transaction sessions. A transaction older than last_autovacuum can hold a snapshot that prevents VACUUM from removing dead tuples visible to that snapshot.
  3. Create the pgstattuple extension if it is not already installed: CREATE EXTENSION pgstattuple;.
  4. Run an exact scan on the candidate table: SELECT * FROM pgstattuple('my_schema.my_table');. This performs a full table scan; on tables larger than tens of gigabytes expect minutes of runtime and I/O load. For faster approximate results, use pgstattuple_approx('my_schema.my_table'), which leverages the visibility map and avoids scanning all pages. Accuracy depends on how recently the table was vacuumed.
  5. Interpret the output. Key fields are table_len (total physical bytes), tuple_len (live tuple bytes), dead_tuple_len, free_space, and free_percent. Compute bloat percentage as (table_len - tuple_len) / table_len * 100. Values above 30-40 percent usually justify remediation.
  6. Do not trust catalog-based heuristic bloat queries. These underreport bloat significantly because they estimate free space using statistical assumptions rather than page-level inspection. A table can show zero bloat in a heuristic check while pgstattuple reveals 37 percent or more.
  7. Compare n_tup_hot_upd to n_tup_upd. If the ratio is low and the table has non-trivial update volume, bloat is likely coming from indexed-column updates that cannot use Heap-Only Tuple updates.
  8. If the table has steady churn and autovacuum is keeping the ratio stable, monitor trends rather than immediately remediating.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
n_dead_tup / (n_live_tup + n_dead_tup)Dead tuple ratio indicates vacuum effectiveness> 20% sustained or climbing
pgstattuple.free_percentExact fragmentation and free space> 40% with climbing trend
last_autovacuum ageWhether autovacuum reaches the table> 24 hours on high-write tables
Table physical size vs. logical row countSpace amplification from bloatSize grows faster than insert rate implies
age(relfrozenxid) per tableFreeze progress independent of dead tuple cleanup> 500 million (wraparound risk)

If you are collecting metrics with Netdata, chart pg_stat_user_tables.n_dead_tup alongside n_live_tup and pg_database.size. A widening gap between live tuples and table size is often the first visible signal of bloat, and it lets you spot problems without repeatedly querying the catalog on the production instance.

Fixes

Online remediation with pg_repack

pg_repack is the standard tool for online table reorganization. It creates a new compact copy of the table, builds fresh indexes, and replays concurrent DML from a trigger-based log table. The final catalog swap acquires an ACCESS EXCLUSIVE lock briefly; on healthy systems this is often sub-second, but it can stretch under heavy load or when many objects depend on the table.

Requirements: the table must have a primary key or a unique NOT NULL index. You need free disk space roughly equal to the size of the table plus its indexes, because the tool maintains both copies until the swap completes. Run it during a low-traffic window because the trigger adds write overhead during the copy.

# Basic pg_repack invocation
pg_repack -d mydb -t my_schema.my_table

If pg_repack aborts, trigger artifacts and the temporary table may be left behind. Check for orphaned log tables and triggers before retrying. Table owners who are not superusers can run it with --no-superuser-check where appropriate.

When pg_squeeze is an option

pg_squeeze provides similar online compaction but uses logical decoding instead of triggers. It can squeeze tables without a primary key and integrates with the autovacuum framework. However, it requires adding pg_squeeze to shared_preload_libraries, configuring wal_level and max_replication_slots, and restarting the cluster. It is not available on Amazon RDS.

Offline remediation with VACUUM FULL

VACUUM FULL rewrites the entire table and all indexes while holding an ACCESS EXCLUSIVE lock for the entire duration. No reads or writes are possible. For large tables this can take hours. Use this only during an explicit maintenance window when the table can be taken completely offline. It also requires disk space for the second copy of the table during the rewrite. If cancelled, the transaction rolls back and the table remains unchanged.

Plain VACUUM and autovacuum tuning

If bloat is mild and the table is not critical, aggressive autovacuum may be enough. Lower the per-table threshold so VACUUM triggers before bloat becomes severe:

ALTER TABLE my_table SET (
    autovacuum_vacuum_scale_factor = 0.05,
    autovacuum_vacuum_threshold = 10000
);

For insert-only tables, PostgreSQL 13 and later support autovacuum_vacuum_insert_scale_factor to trigger vacuum for freezing even when no dead tuples exist.

Prevention

  • Per-table autovacuum tuning. Default settings assume modest write rates. High-churn tables need autovacuum_vacuum_scale_factor as low as 0.01, higher autovacuum_work_mem so each pass processes more dead tuples, and enough autovacuum_max_workers to reach hot tables before they bloat.
  • Set fillfactor below 100 on UPDATE-heavy tables. This reserves page space for HOT updates, reducing index bloat and fragmentation from non-indexed column updates.
  • Keep transactions short. Long-running transactions, even idle ones, pin dead tuples and block freeze progress, which lets bloat accumulate and raises wraparound risk.
  • Monitor freeze age independently from dead tuple counts. A table can have low bloat but an old relfrozenxid; autovacuum driven by insert traffic or freeze requirements uses the same worker pool, and contention there delays dead tuple cleanup.
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.