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 / cockroachdb / cockroachdb-write-too-old

Operations Guides

CockroachDB RETRY_WRITE_TOO_OLD: the most common contention restart and how to kill it

Your cluster is healthy: nodes are live, ranges are available, disk space is fine, L0 sublevels are low. But transaction commit latency is climbing, P99 is widening, and the txn_restarts metric shows a rising rate tagged writetooold. Whether applications surface errors to users depends on whether their retry logic works.

RETRY_WRITE_TOO_OLD is the most common transaction restart cause under CockroachDB’s default SERIALIZABLE isolation. It is not an infrastructure problem. It is a contention problem rooted in schema design, key patterns, and transaction scope. Adding nodes does not help because the bottleneck is logical serialization, not physical capacity. Once you identify the conflicting keys and the transaction patterns driving them, writetooold restarts are fixable.

What this means

CockroachDB uses MVCC timestamps for concurrency control under serializable snapshot isolation. Every transaction receives a timestamp from the node’s Hybrid Logical Clock. When transaction A tries to write to key K, but transaction B has already written to K at a higher timestamp, A’s write is “too old.” CockroachDB returns a WriteTooOldError wrapped in a TransactionRetryWithProtoRefreshError, surfaces to the client as SQLSTATE 40001, and tags the restart internally as writetooold.

The database expects the client to retry the transaction at a new, higher timestamp. For implicit single-statement transactions, CockroachDB retries transparently and the application never sees the error. For explicit multi-statement transactions, the client must implement retry logic using the SAVEPOINT cockroach_restart pattern (supported since v20.1) or the transaction fails visibly.

The critical distinction: writetooold means two or more transactions are writing to the same key or overlapping keys. This is schema and application contention. It is categorically different from readwithinuncertainty (clock skew, an infrastructure problem) or txnpush (transaction-level conflicts on different keys within the same transaction). Each cause demands a different response.

Common causes

CauseWhat it looks likeFirst thing to check
Sequential or monotonic primary keysWritetooold concentrated on one table, one node’s CPU elevated while others idlePer-range QPS via crdb_internal.ranges
Wide transactions touching many keysHigh retry rate on multi-statement transactions, intent count elevatedcrdb_internal.transaction_contention_events
Single-row counters or status fieldsAll retries reference the same key, extreme hotspot on one rangeContention events showing repeated key
Long-running transactions blocking newer onesIntent count growing, commit latency diverging from statement latencySHOW CLUSTER SESSIONS for long-running transactions
Migration or batch job colliding with OLTPSudden writetooold spike during maintenance window, specific table involvedJob timing correlation with retry spike

Quick checks

# Check writetooold restart rate specifically
curl -s http://localhost:8080/_status/vars | grep txn_restarts

# Rule out clock skew: readwithinuncertainty should be near zero
curl -s http://localhost:8080/_status/vars | grep clock_offset

# Check intent accumulation (abandoned or long-running transactions)
curl -s http://localhost:8080/_status/vars | grep intentcount

# Check commit/abort ratio (below 95% indicates contention)
curl -s http://localhost:8080/_status/vars | grep -E 'sql_txn_(commit|abort)'

# Find the specific keys where contention is happening (admin-only, expensive RPC)
cockroach sql -e "SELECT * FROM crdb_internal.transaction_contention_events ORDER BY contention_duration DESC LIMIT 50;"

# Identify hot ranges receiving disproportionate traffic (admin-only, expensive)
cockroach sql -e "SELECT range_id, start_pretty, lease_holder, range_size FROM crdb_internal.ranges ORDER BY range_size DESC LIMIT 20;"

# Find long-running transactions that may be blocking others
cockroach sql -e "SELECT * FROM [SHOW CLUSTER SESSIONS] WHERE active_queries != '' ORDER BY session_start ASC LIMIT 10;"

# Check per-node CPU for asymmetry (hot range indicator)
curl -s http://localhost:8080/_status/vars | grep sys_cpu_user_ns

Note: crdb_internal queries require admin privileges, perform expensive cluster-wide RPCs, and may change between versions. Use them for diagnosis only, not automated monitoring.

How to diagnose it

flowchart TD
    A["writetooold restarts elevated"] --> B{"readwithinuncertainty also > 0?"}
    B -->|"Yes"| C["Fix NTP/clock skew first"]
    B -->|"No, writetooold dominant"| D["Query contention events"]
    D --> E{"Conflict on specific key or range?"}
    E -->|"Same key repeatedly"| F["Hot key problem"]
    E -->|"Many keys, same table"| G["Wide transaction problem"]
    E -->|"Many tables"| H["Long-running txn blocking others"]
    F --> I["Redesign keys or split ranges"]
    G --> J["Add SELECT FOR UPDATE or shrink txn"]
    H --> K["Find and kill blocking session"]
    J --> L["Or switch to READ COMMITTED"]
  1. Confirm writetooold is the dominant cause. Grep txn_restarts and verify that writetooold is the primary contributor. If readwithinuncertainty is also elevated, fix clock skew first. Mixed causes are common but the infrastructure problem (clocks) must be resolved before you can properly diagnose the application problem (contention).

  2. Query contention events. Run the crdb_internal.transaction_contention_events query. Look for patterns: which keys appear repeatedly, which tables and indexes are involved, and how long the contention events last. Since v24.1, with the cluster setting sql.contention.record_serialization_conflicts.enabled set to true (on by default since v24.1), contention events for WriteTooOld errors record the actual conflicting key. In earlier versions, they may record the transaction’s anchor key (the first key written), which may not be where contention occurred.

  3. Map conflicting keys to schema. Use the key prefix from contention events to identify the table and index. The key format /Table/<table_id>/<index_id>/... maps to CockroachDB’s internal encoding. Cross-reference with crdb_internal.ranges to find which ranges are hot.

  4. Check for hot ranges. If one range handles 10x or more the average QPS, you have a hot range caused by sequential key patterns. This is the most common root cause of writetooold restarts. See the related guide on hot range bottlenecks for deeper diagnosis.

  5. Review transaction scope. Even without hot keys, wide transactions that touch many keys across multiple ranges create larger conflict windows. The longer a transaction runs, the more likely another transaction writes to one of its keys at a higher timestamp. Check SHOW CLUSTER SESSIONS for transactions running longer than expected.

  6. Check application retry handling. CockroachDB’s txn_restarts metric captures database-level restarts, including transparent retries of implicit transactions. It does not count application-side retries (reconnect and re-execute). If your applications are reconnecting on 40001 errors instead of using the SAVEPOINT cockroach_restart pattern, the true contention cost is higher than what the metric shows.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
txn_restarts broken down by causeDistinguishes writetooold (schema) from readwithinuncertainty (clocks) from txnpush (app conflicts)Any cause exceeding 2% of total transactions
txn_durations (P99)Retries add directly to transaction latencyP99 diverging from sum of statement latencies
intentcount / intentbytesGrowing intents indicate abandoned or long-running transactionsMonotonic growth over hours
sql_txn_commit_count / sql_txn_abort_countCommit rate below 95% indicates contention or resource issuesAbort rate trending up over 15 minutes
Per-node CPU asymmetryOne saturated node with idle peers signals hot rangeOne node at 2x+ CPU of peers
sql_service_latency P99Contention manifests as tail latency before it shows in averagesP99 rising while P50 is stable (bimodal behavior)

Thresholds from the playbook: retry rate below 2% is typical for well-designed OLTP. 2-10% is yellow. Above 10% is red and indicates a contention problem that will cascade under load.

Fixes

Redesign hot keys

If contention events show the same key or narrow key range repeatedly, the root cause is sequential key access. Monotonic primary keys (SERIAL, auto-incrementing, timestamp-prefixed) funnel all writes through one range and one leaseholder.

Fix: Switch to randomly distributed keys. UUID-based primary keys or hash-prefixed keys spread writes across ranges. This is the most impactful change but requires schema migration.

Tradeoff: Random keys hurt read locality. Range scans that were sequential become scattered across the cluster. Use this for write-heavy tables where scan performance is secondary.

Short-term mitigation: ALTER TABLE ... SPLIT AT manually splits hot ranges at specific key boundaries. This does not fix the underlying pattern but reduces the blast radius while you plan the schema change.

Use SELECT FOR UPDATE to pre-lock

When a transaction reads a row and later updates it in the same transaction, another transaction can write to that row in between, causing writetooold. SELECT ... FOR UPDATE acquires a lock on the row at read time, forcing concurrent writers to block instead of causing a restart.

Fix: Add FOR UPDATE to the SELECT statements that precede writes in the same transaction. This converts writetooold restarts into lock waits, which are transparent to the application.

Tradeoff: Lock waits add latency to concurrent transactions. Under heavy contention, you trade retries for queueing. This is usually the right trade because retries waste all prior work in the transaction while lock waits only delay.

Edge case: SELECT FOR UPDATE locks are best-effort and can be lost during range splits, lease transfers, or node crashes. Under rare timing conditions — such as an asynchronous range split dropping unreplicated locks — this can still produce a WriteTooOldError despite using FOR UPDATE.

Shrink transaction scope

Wide transactions that touch many keys across multiple ranges have a larger conflict window. Every additional key and every additional statement increases the probability that another transaction writes at a higher timestamp.

Fix: Break large transactions into smaller ones. Move non-critical updates out of the main transaction. Reduce the number of statements between BEGIN and COMMIT.

Tradeoff: Smaller transactions lose atomicity guarantees. If the application relied on multi-statement transactions for consistency, you need application-level compensation or idempotent operations.

Switch to READ COMMITTED isolation

READ COMMITTED isolation (introduced in v23.2, enabled by default since v24.1) allows the server to retry individual statements transparently within a transaction. Under READ COMMITTED, RETRY_WRITE_TOO_OLD errors are almost never returned to the client because the database handles the retry internally.

Fix: Set the transaction isolation level to READ COMMITTED for workloads where SERIALIZABLE guarantees are not required. SET TRANSACTION ISOLATION LEVEL READ COMMITTED; or configure it at the session or database level.

Tradeoff: READ COMMITTED relaxes isolation guarantees. It permits phenomena that SERIALIZABLE prevents (phantom reads, non-repeatable reads). Evaluate whether your application correctness depends on serializable isolation before switching.

Edge case: Under READ COMMITTED, RETRY_WRITE_TOO_OLD can still surface if a statement has already begun streaming a partial result set and cannot retry transparently. Increasing the result buffer size can mitigate this.

Implement client-side retry with SAVEPOINT cockroach_restart

If you must stay on SERIALIZABLE isolation, every explicit transaction needs proper retry handling. The SAVEPOINT cockroach_restart pattern lets the application retry the transaction from the beginning without reconnecting.

Fix: Wrap transaction logic in a retry loop that releases the cockroach_restart savepoint on success or rolls back to it on 40001 errors. The retry savepoint must be the outermost savepoint if nesting is used.

Tradeoff: This is mandatory boilerplate for SERIALIZABLE in CockroachDB. Without it, any contention event becomes a user-visible error. The retry loop adds latency proportional to the contention rate.

Prevention

  • Monitor retry rate by cause, not aggregate. A total retry rate of 3% is meaningless if you cannot tell whether it is writetooold (fix your schema), readwithinuncertainty (fix your clocks), or txnpush (fix your application). Break down txn_restarts by cause tag.
  • Design keys for write distribution from day one. Sequential primary keys are the most common root cause. UUID or hash-prefixed keys prevent hot ranges from forming as data grows.
  • Audit transaction scope regularly. As applications evolve, transactions accumulate statements. A transaction that was fast at 3 statements may cause contention at 8. Track txn_durations P99 relative to statement latency sum.
  • Use SELECT FOR UPDATE as a default pattern for read-then-write transactions on contended tables.
  • Evaluate READ COMMITTED for new workloads where serializable isolation is not strictly required. It eliminates the retry handling burden for most contention patterns.
  • Enable contention event recording so diagnosis data is available when you need it. The cluster setting sql.contention.record_serialization_conflicts.enabled controls whether serialization conflict details — including WriteTooOld events — are recorded for later inspection.

How Netdata helps

Netdata’s CockroachDB monitoring provides per-second txn_restarts with cause breakdown, so you can see writetooold spikes within seconds of onset rather than at the next scrape interval. The cause tag distinguishes schema contention from clock skew without manual correlation.

Key correlations for this issue:

  • Retry rate vs commit latency: when txn_durations P99 rises alongside writetooold restarts, retries are degrading real transactions.
  • Per-node CPU asymmetry: one node at 2x CPU of its peers with rising writetooold is a textbook hot key signature.
  • Intent count growth: monotonic growth reveals long-running or abandoned transactions leaving unresolved intents.
  • ML anomaly detection: catches gradual contention growth that static thresholds miss, such as retry rate creeping from 1% to 4% over weeks.
The Netdata solution

CockroachDB monitoring with Netdata

Netdata monitors CockroachDB with per-second metrics and automatic dashboards. Watch LSM compaction, Raft liveness, clock skew, hot ranges, and intent buildup so the distributed-systems failure modes in these runbooks surface early.