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 / mongodb / mongodb-operation-exceeded-time-limit

Operations Guides

MongoDB operation exceeded time limit (MaxTimeMSExpired): maxTimeMS and killed operations

Error code 50, MaxTimeMSExpired, means the server killed an operation that exceeded its processing budget. Raising the timeout without fixing the root cause turns acute failures into chronic resource exhaustion. The operation was already pathologically slow; maxTimeMS ended it before it consumed more resources or held locks and tickets indefinitely.

maxTimeMS sets a cumulative processing budget in milliseconds. MongoDB enforces it using the same interrupt mechanism as killOp, terminating the operation only at designated interrupt points. Idle time between cursor batches does not count toward the limit, and on direct connections network latency is excluded from the server-side clock. On sharded clusters, however, latency between mongos and shard mongod instances counts against the limit. Distinguish a true MaxTimeMSExpired from a client-side socket timeout, where the client gives up before the server responds.

What this means

MaxTimeMSExpired releases whatever resources the operation held: WiredTiger read or write tickets, cache space, and locks. The operation may have been scanning millions of documents or pinning an old snapshot.

This error is a symptom. Raising maxTimeMS without fixing the underlying slowness converts acute failures into chronic resource exhaustion. Long-running operations can block eviction and trigger cache pressure cascades. Find why the operation was slow and fix that.

flowchart TD
    A[Client sees MaxTimeMSExpired] --> B{Server-side or socket timeout?}
    B -->|Error code 50| C[Server killed operation]
    B -->|Network exception| D[Client timed out first]
    C --> E[currentOp shows long-running op]
    E --> F{Slow query plan?}
    F -->|COLLSCAN or bad IXSCAN| G[Missing index or plan regression]
    F -->|Plan is good| H[System saturation]
    H --> I[Cache dirty ratio high or tickets exhausted]
    D --> J[Raise socketTimeoutMS above maxTimeMS]
    G --> K[Build index or fix query]
    I --> L[Kill runaway ops or reduce load]

Common causes

CauseWhat it looks likeFirst thing to check
Missing or dropped indexSlow query log shows COLLSCAN or keysExamined:docsReturned > 100:1db.collection.getIndexes() and compare to query predicates
Query plan regressionQuery was fast yesterday, slow today; same shape, different planexplain("executionStats") or plan cache state
Cache pressure or ticket exhaustionopLatencies spiking for all operations, not just one; app-thread evictions risingserverStatus().wiredTiger.cache and concurrentTransactions
Runaway aggregation or large $lookupcurrentOp shows aggregate with huge docsReturned or long secs_runningdb.currentOp({ "active": true, "secs_running": { "$gt": 60 } })
Heavy load on secondaryTimeouts appear only on secondary reads while primary is healthyrs.status() for lag and serverStatus().flowControl
Long-lived cursor with high maxTimeMSCursor killed after extended runtime despite high limitSession idle lifetime and metrics.cursor

Quick checks

These are read-only unless otherwise noted.

# Check operations running longer than 10 seconds
mongosh --quiet --eval 'db.currentOp({ "active": true, "secs_running": { "$gt": 10 } }).inprog.forEach(function(op) { print(op.opid + " | " + op.op + " | " + op.secs_running + "s | " + op.ns + " | " + JSON.stringify(op.command || {}).substring(0,120)); })'
# Tail the slow query log for recent timeouts
grep -E "MaxTimeMSExpired|Slow query" /var/log/mongodb/mongod.log | tail -20
// Check WiredTiger cache pressure and dirty ratio
var c = db.serverStatus().wiredTiger.cache;
print("Cache fill: " + (100 * c["bytes currently in the cache"] / c["maximum bytes configured"]).toFixed(1) + "%");
print("Dirty ratio: " + (100 * c["tracked dirty bytes in the cache"] / c["maximum bytes configured"]).toFixed(1) + "%");
// Check available read and write tickets
var t = db.serverStatus().wiredTiger.concurrentTransactions;
print("Read tickets available: " + t.read.available + " / " + t.read.totalTickets);
print("Write tickets available: " + t.write.available + " / " + t.write.totalTickets);
// Check replication lag if secondaries are timing out
rs.printSecondaryReplicationInfo()
// Sample the system profiler for slow operations
db.system.profile.find().sort({ ts: -1 }).limit(5).forEach(function(doc) { print(doc.ts + " | " + doc.ns + " | " + doc.millis + "ms | " + doc.planSummary); });

How to diagnose it

  1. Confirm it is server-side. A MaxTimeMSExpired response includes error code 50 and "codeName": "MaxTimeMSExpired". Client-side socket timeouts manifest as network exceptions in the driver without a MongoDB error code. If socketTimeoutMS equals maxTimeMS, the client may give up before the server returns the error, masking the root cause.

  2. Capture the operation in currentOp. Run the currentOp query from the quick checks. Look for:

    • High secs_running
    • waitingForLock: true
    • op: "query" or "command" with aggregation stages
    • Large docsExamined vs docsReturned ratios in the slow log
  3. Correlate with the slow query log. Filter for the same ns (namespace) and time window. Key ratios:

    • keysExamined / docsReturned should be near 1:1 for indexed queries. A ratio of 100:1 indicates a badly targeted index scan.
    • docsExamined / docsReturned near 1:1 is healthy. 1000:1 means nearly every document examined was discarded, typical of a missing index or a collection scan.
  4. Check for system-wide pressure. If many unrelated operations are timing out, look at:

    • WiredTiger cache dirty ratio > 10%
    • Application-thread evictions incrementing
    • Available tickets below 25% of total
    • Queue depths (globalLock.currentQueue) sustained above 20 If these are elevated, the root cause is saturation, not a single bad query.
  5. Check replication state for secondary timeouts. If reads with secondaryPreferred are failing while primary reads succeed, check replication lag. A secondary under heavy oplog application load may be slow to respond. Also verify the secondary is not in RECOVERING.

  6. Inspect cursors. If the timed-out operation is a long-running analytical cursor, check db.serverStatus().metrics.cursor. If noTimeout cursors are high, or if the session has been idle, the operation may have been killed by the session idle timeout rather than maxTimeMS.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Slow query rateDirectly precedes MaxTimeMSExpired spikesSustained increase above baseline
docsExamined:docsReturned ratioReveals wasted work per operationRatio > 100:1 for OLTP queries
WiredTiger cache dirty ratioDirty data accumulation causes checkpoint stalls and global slowdown> 10% sustained
Application-thread evictionsIndicates background eviction cannot keep up; latency spikes followAny sustained nonzero rate
Available read/write ticketsTicket exhaustion makes all operations queue< 25% of total available
currentOp max operation ageCatches runaway queries before they cascadeAny non-background op > 300s
Replication lagExplains secondary-only timeouts> 10s sustained or > 25% of oplog window
opcounters throughputSudden drop suggests global blocking> 50% drop from baseline

Fixes

Fix the query, not the timeout

If currentOp and the slow log show a collection scan or an inefficient index scan, add or restore the correct index. MongoDB 4.2+ optimized builds yield to reads and writes; the legacy background option is ignored:

// Optimized modern build; background is ignored
db.collection.createIndex({ field: 1 });

If the query planner has regressed, evict the bad plan from the cache or force an index with hint() as a temporary measure. Compare the winning plan in explain("executionStats") to the expected index.

Reduce resource consumption

For aggregations that time out due to data volume:

  • Push $match stages as early as possible in the pipeline.
  • Use $project or aggregation $unset to reduce document size.
  • Add $limit if the application only needs a subset.
  • For large $lookup operations, ensure the foreign collection has an index on the localField/foreignField.

Kill and reroute

If an operation is already running and blocking others, kill it:

db.killOp(<opid>)

Warning: killOp is best-effort and may not terminate immediately. Killing a write operation may leave multi-document writes partially completed. After killing a long-running write, verify data consistency in the affected collection.

If the workload is legitimate but heavy, move it to a hidden secondary or an analytics node, or schedule it during low-traffic windows.

Address saturation

If the root cause is cache pressure or ticket exhaustion:

  • Pause batch jobs or bulk imports to reduce write pressure.
  • Kill unnecessary long-running transactions or noCursorTimeout cursors that pin snapshots.
  • Check storage health with iostat -x 1 for elevated await or %util.
  • If storage is degraded, step down the primary to shift writes to a healthier member.

Warning: Stepping down the primary triggers an election and interrupts writes. Use only during a maintenance window or confirmed storage degradation.

Prevention

  • Monitor slow query trends, not just max age. A query that drifts from 10 ms to 500 ms over a week will eventually hit any reasonable maxTimeMS. Trend the 95th percentile of the slow query log.
  • Set operation-class timeouts. OLTP reads should have a tight maxTimeMS (for example, 5 seconds). Long analytical queries can have a higher limit, but only if the query is efficient and the infrastructure can support it.
  • Audit indexes after every deployment. Use $indexStats to confirm critical indexes are being used. If a key index shows zero operations after restart, investigate before the plan cache warms with a bad plan.
  • Keep headroom in cache and tickets. Operate WiredTiger cache below 80% fill and below 5% dirty during peak. Keep available tickets above 25% of total. These margins absorb transient slowdowns without cascading into timeouts.

How Netdata helps

  • Correlate MaxTimeMSExpired spikes with per-second opLatencies, scanned/returned ratios, and slow query rates to distinguish a single bad query from global pressure.
  • Alert on WiredTiger cache dirty ratio and application-thread evictions before they drive operations into timeout.
  • Surface ticket utilization and queue depth to catch storage engine saturation before queries start dying.
  • Track currentOp age and replication lag to catch secondary-side timeouts early.
The Netdata solution

MongoDB monitoring with Netdata

Netdata monitors MongoDB with per-second metrics and automatic dashboards. Watch WiredTiger cache pressure, oplog window, connection counts, checkpoint stalls, and replication health in one place, correlated with the underlying host.