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-missing-indexes

Operations Guides

PostgreSQL missing indexes: detection from pg_stat_statements and logs

When the planner cannot find a suitable index path, it falls back to a sequential scan. On large tables, this turns millisecond queries into multi second outages.

PostgreSQL exposes evidence through built-in instrumentation: pg_stat_user_tables tracks sequential versus index scan ratios, pg_stat_statements surfaces the most time-consuming query fingerprints, and auto_explain logs execution plans that reveal Seq Scan nodes directly.

This guide gives an operator workflow to detect missing indexes using read-only checks and hypothetical index simulation. It assumes pg_stat_statements is enabled; if not, adding it to shared_preload_libraries requires a server restart.

The workflow moves from broad table-level counters to specific query fingerprints, then to plan verification and safe validation with HypoPG. Each step includes the exact queries and safety notes you need to run during a live incident without making things worse.

What this captures

This workflow uses four layers of evidence:

  • Table scan patterns from pg_stat_user_tables, showing which tables are scanned sequentially and how many rows are read.
  • Query-level timing from pg_stat_statements, identifying which normalized query fingerprints consume the most execution time.
  • Execution plans from auto_explain or manual EXPLAIN (ANALYZE, BUFFERS), revealing whether the planner is choosing sequential scans because no index exists or because statistics are stale.
  • Hypothetical index impact using the HypoPG extension, letting you test whether a proposed index changes the plan before writing any disk pages or WAL.

Together these answer two questions: where is the missing index, and will adding it actually help?

Prerequisites

Confirm the following before running the workflow:

  • pg_stat_statements is enabled. It must be listed in shared_preload_libraries and the extension created in the target database. Changing shared_preload_libraries requires a PostgreSQL restart.
  • You have superuser or pg_monitor role membership. pg_stat_statements and pg_stat_user_tables are readable by pg_monitor, but auto_explain configuration and HypoPG installation require superuser.
  • (Optional) auto_explain is loaded. To capture plans automatically from logs, auto_explain must also be in shared_preload_libraries. Like pg_stat_statements, this requires a restart to activate. Once loaded, its parameters can be changed with a configuration reload.
  • (Optional) HypoPG is installed. Available from the hypopg package on most distributions. Install with CREATE EXTENSION hypopg; in the target database.

Detection workflow

flowchart TD
    A[pg_stat_user_tables high seq_tup_read] --> B{Table > 10k rows?}
    B -->|No| C[Scan likely correct]
    B -->|Yes| D[Find query in pg_stat_statements]
    D --> E[Capture plan with EXPLAIN]
    E --> F{Seq Scan on large table?}
    F -->|No| G[Check statistics]
    F -->|Yes| H[Test with HypoPG]
    H --> I{Index Scan preferred?}
    I -->|Yes| J[CREATE INDEX CONCURRENTLY]
    I -->|No| K[Revise query or predicates]

Follow these steps in order. All steps are read-only except for HypoPG index creation, which is session-local and writes no WAL.

1. Identify tables with excessive sequential scans

Start with pg_stat_user_tables. Counters are cumulative since the last stats reset or server restart, so compare relative volumes rather than absolute thresholds.

SELECT schemaname, relname,
       seq_scan, seq_tup_read,
       idx_scan,
       CASE WHEN seq_scan + idx_scan > 0
            THEN round(100.0 * seq_scan / (seq_scan + idx_scan), 2)
            ELSE 0 END AS seq_pct
FROM pg_stat_user_tables
WHERE n_live_tup > 10000
ORDER BY seq_tup_read DESC
LIMIT 20;

What to look for: Large values of seq_tup_read on tables with more than a few thousand live rows. A high seq_pct alone is not enough; a table scanned ten thousand times with zero index scans is suspicious, but if the table has only a few hundred rows the sequential scan may still be correct. Focus on absolute seq_tup_read volume.

Note: these counters reset on server restart. If you restart frequently, baseline-correct by noting pre- and post-restart values.

2. Correlate with pg_stat_statements

Find the query fingerprints consuming the most execution time:

SELECT query, calls,
       round(total_exec_time::numeric, 2) AS total_ms,
       round(mean_exec_time::numeric, 4) AS mean_ms,
       rows
FROM pg_stat_statements
ORDER BY total_exec_time DESC
LIMIT 20;

Cross-reference the tables from Step 1 with the query text. Look for WHERE clauses on columns that lack indexes, or joins between large tables without supporting index paths.

Caveat: pg_stat_statements normalizes queries by replacing literals with placeholders. A query that is fast for most values but slow for a specific parameter will appear as a single fingerprint. Check stddev_exec_time on PostgreSQL 13 and later; a high standard deviation relative to the mean suggests parameter-sensitive plan flapping or bimodality that a single index may not fix.

3. Capture execution plans

For immediate inspection of a specific query, use manual EXPLAIN:

EXPLAIN (ANALYZE, BUFFERS, FORMAT TEXT)
SELECT ...

If auto_explain is loaded and you need continuous capture, configure it to log plans for queries exceeding your latency threshold:

ALTER SYSTEM SET auto_explain.log_min_duration = 1000;
ALTER SYSTEM SET auto_explain.log_analyze = true;
ALTER SYSTEM SET auto_explain.log_buffers = true;
SELECT pg_reload_conf();

Warning: auto_explain.log_analyze = true causes the server to execute queries internally to collect timing. This adds overhead and can trigger side effects from volatile functions. Enable it only for short diagnostic windows, then revert.

If auto_explain is unavailable, log_min_duration_statement logs slow query text without plans and requires no preload library.

What to look for: Seq Scan nodes on the tables identified in Step 1. Check the rows estimate versus actual rows. If the estimate is wildly wrong, the problem may be stale statistics rather than a missing index; run ANALYZE on the table first and re-check.

The BUFFERS output is critical. Look for shared hit versus shared read. If a sequential scan shows high shared read, the table is not cached and the scan is hitting disk. If shared hit dominates, the table fits in memory and the scan is less expensive, though still CPU-intensive for large tables.

4. Determine if the sequential scan is actually wrong

Sequential scans are not always mistakes. If a query returns more than 5-10% of a table’s rows, or if the table is small enough to fit in a few pages, a sequential scan is often faster than random index I/O. Before concluding that an index is missing, confirm:

  • The table has more than roughly ten thousand rows.
  • The query filters on a column that would be highly selective with an index.
  • The Seq Scan node in EXPLAIN shows high actual time relative to the rest of the plan.

If the planner estimates it would return a large fraction of the table, it is probably correct to avoid an index. If the table is small or the query is unselective, move on.

5. Test a hypothetical index with HypoPG

Ensure the HypoPG extension is installed in the target database. Then create a virtual index that exists only in the planner’s cost model. It generates no disk I/O, no WAL, and no locks.

SELECT * FROM hypopg_create_index('CREATE INDEX ON my_table(my_column)');

-- Check the new plan (use plain EXPLAIN, not EXPLAIN ANALYZE:
-- HypoPG indexes exist only in the planner cost model and cannot
-- be used during actual execution)
EXPLAIN
SELECT ...

What to look for: If the planner switches from Seq Scan to Index Scan or Bitmap Index Scan and the estimated cost drops significantly, the index is likely to help.

Important: HypoPG indexes are session-local. They disappear when the session ends. They are invisible to other sessions and do not appear in pg_indexes. You cannot use them to warm production workloads.

6. Force the planner to consider index paths (diagnostic only)

If HypoPG is not available, you can temporarily bias the planner to see whether an index path is even possible:

SET enable_seqscan = off;
EXPLAIN (ANALYZE, BUFFERS)
SELECT ...
RESET enable_seqscan;

If the planner still chooses a sequential scan or materialized scan even with enable_seqscan = off, then no useful index path exists for that query shape. You may need to reconsider the query, add a composite index, or fix statistics.

Warning: This affects the entire session. Never leave enable_seqscan = off in production.

7. Create the index safely

If HypoPG or the diagnostic above confirms the index will help, create it without blocking writes:

CREATE INDEX CONCURRENTLY idx_my_table_my_column ON my_table(my_column);

CREATE INDEX CONCURRENTLY avoids locking the table for writes, though it takes longer than a standard CREATE INDEX and cannot run inside a transaction block. Monitor the build progress in system views.

Verifying it works

After the index is built, verify the change had the intended effect:

  • Re-run the EXPLAIN (ANALYZE, BUFFERS) from Step 3. Confirm the planner now uses the index.
  • Check pg_stat_user_indexes for the new index. idx_scan should increment as queries use it.
  • Re-query pg_stat_statements after a representative workload cycle. The target fingerprint’s mean_exec_time should drop. Because counters are cumulative, compare rates before and after rather than absolute totals.
  • If pg_stat_user_indexes shows zero scans on the new index after a representative workload cycle, the query shape may not match the index. Common causes include a function wrapper on the indexed column, an implicit type cast in the query, or a join condition that uses a different column order than a composite index. Re-examine the query text and the plan.

Common pitfalls

  • Small tables dominate seq_scan counters. Tables with fewer than a few thousand rows are often scanned sequentially by design. Filter them out of your investigation.
  • Stale statistics cause false positives. A missing index is not the only cause of sequential scans. If EXPLAIN shows a large gap between estimated and actual rows, run ANALYZE on the table and re-check the plan before creating an index.
  • Counters reset on restart. A server restart clears pg_stat_user_tables and pg_stat_statements. Baseline your metrics before making changes.
  • pg_stat_statements evictions. When pg_stat_statements.max is exceeded, least-used entries are deallocated. This causes queryid churn and can make before-and-after comparisons difficult. If you see frequent deallocations in pg_stat_statements_info, raise pg_stat_statements.max.
  • Over-indexing. Every index slows writes and consumes space. Do not create an index solely because a sequential scan exists. Validate with HypoPG first, and drop unused indexes (idx_scan = 0 over a full business cycle) during regular maintenance.

Signals to monitor

SignalWhy it mattersWarning sign
pg_stat_user_tables.seq_tup_readRows read via sequential scanGrowing on tables with more than 10k live rows
pg_stat_user_tables.seq_scan / idx_scan ratioIndex efficiencyseq_scan dominates on large, queried tables
pg_stat_statements.mean_exec_timeQuery latency trendSustained increase on specific fingerprints
pg_stat_statements.stddev_exec_timePlan stabilityHigh variance suggests flapping or skew
auto_explain Seq Scan frequencyPlan qualityRecurring Seq Scan on tables that should use indexes
pg_stat_user_indexes.idx_scanIndex adoptionNew index shows zero scans after creation

How Netdata helps

Netdata surfaces PostgreSQL statistics alongside system telemetry. Use it to correlate sequential scan spikes with query latency and disk I/O.

  • Correlate sequential scan rates on specific tables with disk read throughput and query latency.
  • Alert on per-table scan volume growth to catch regressions before they dominate workload latency.
  • Compare application query latency with PostgreSQL statement statistics to confirm that queries hitting sequentially scanned tables are the same ones spiking in application telemetry.
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.