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 / how-cockroachdb-works-in-production

Operations Guides

How CockroachDB actually works in production: a mental model for operators

CockroachDB is a distributed, strongly-consistent SQL database built on a replicated key-value store. It layers SQL execution on top of a transactional KV engine that uses Raft consensus for replication and MVCC for concurrency control. To reason about its failures, you must hold several interacting subsystems in your head simultaneously.

This is not a tutorial. It is the mental model that experienced operators use when diagnosing slow queries, unavailable ranges, clock skew, and compaction death spirals. Each subsystem has its own failure modes, but the most damaging incidents happen when failures cascade across layers.

The key insight: CockroachDB’s layers are not independent. A disk stall at the Pebble layer cascades upward through Raft, through range availability, through admission control, and into SQL latency. A clock skew problem at the HLC layer causes read restarts that look like contention. Understanding the request path from SQL client to SSTable is the foundation for every diagnostic decision you will make.

The layered architecture

CockroachDB is organized in layers. Each layer has its own resource profile, its own failure modes, and its own observable signals.

SQL layer. Client connections arrive via the pgwire protocol (PostgreSQL wire protocol) at a gateway node. The gateway parses, plans, and coordinates query execution. Each connection gets a goroutine. There is no built-in connection pooler. That is the client’s responsibility.

Distributed SQL (DistSQL). The gateway transforms the optimized logical plan into a directed acyclic graph of physical SQL operators. DistSQL creates flows: pipelines of processors connected by streams that shuffle data between nodes. A single query can saturate inter-node bandwidth and consume memory on multiple nodes simultaneously.

Transactional KV layer. Below SQL sits a transactional key-value store. CockroachDB uses serializable snapshot isolation via MVCC timestamps. Each transaction acquires a timestamp from the node’s Hybrid Logical Clock. Transactions that conflict may be pushed (timestamp advanced) or aborted. Write intents (uncommitted writes) remain in storage and must be resolved by the transaction coordinator or by encountering transactions. Abandoned intents create garbage cleaned up asynchronously.

Range abstraction. The entire keyspace is divided into ranges, each approximately 512 MiB by default (changed from 64 MiB in v20.1). Every range is a unit of replication, load balancing, and Raft consensus. A range has multiple replicas (default 3) spread across nodes and zones. One replica is the leaseholder: it serves all reads and coordinates writes. One replica is the Raft leader: it drives consensus. In the common case, leaseholder and Raft leader are co-located on the same node.

Raft consensus. Every write to a range must be proposed through Raft and committed by a quorum of replicas before acknowledgment. Raft heartbeats flow continuously between replicas. A node with 10,000 ranges runs 10,000 Raft state machines concurrently, each consuming CPU for ticking, proposing, and applying entries. This per-range overhead is a non-obvious resource multiplier.

Storage layer (Pebble LSM). Each node stores data in Pebble, a Log-Structured Merge Tree engine (Pebble replaced RocksDB as default in v20.2; it is the only option since v21.1). Writes go into an in-memory memtable (default 64 MB), which is flushed to sorted SSTable files on disk at Level 0. Background compaction merges SSTables from L0 down through L6. When compaction falls behind ingestion, L0 file count and sublevel count grow, causing read latency to spike nonlinearly. This is the single most common performance cliff in CockroachDB.

The request path through the layers

A SQL write traverses every layer. Understanding this path is the foundation for correlating symptoms across subsystems.

flowchart TD
    C["SQL client"] -->|"pgwire"| GW["Gateway: SQL planning"]
    GW -->|"physical plan"| DS["DistSQL: cross-node execution"]
    DS -->|"KV operations"| LH["Leaseholder: reads, write coord"]
    LH -->|"propose"| RL["Raft leader: consensus"]
    RL -->|"fsync commit"| PB["Pebble LSM: L0 to L6"]
    RL -.->|"log replication"| FL["Follower replicas on other nodes"]

A client connects via pgwire to a gateway node. The gateway parses and optimizes the SQL statement, then either executes it locally or distributes it via DistSQL flows to nodes that hold the relevant range data. Each DistSQL processor performs a fragment of the work (scan, filter, join, aggregate) and streams results through inter-node connections.

For writes, the leaseholder for each affected range coordinates the transaction. It proposes the write through Raft. The Raft leader drives consensus: the write is committed once a quorum of replicas acknowledge. On each replica, the committed entry is written to the Pebble LSM: first to the memtable, then flushed to an SSTable at L0, eventually compacted down to L6.

Reads are simpler. The leaseholder serves reads directly from its local Pebble instance, subject to MVCC visibility rules and HLC uncertainty checks. No Raft round-trip is needed for a single-key read at the leaseholder.

Cross-cutting subsystems

Three subsystems span all layers and determine how the system behaves under load.

Admission control (v21.2+, default since v22.1). An internal flow control system that queues work to prevent overload. Five queues regulate different work types: kv, sql-kv-response, sql-sql-response, elastic-cpu, and kv-stores (further queues such as elastic-stores and snapshot-ingest cover background work). The kv-stores queue is directly tied to LSM L0 health: its admission rate scales down as L0 sublevels approach the overload threshold of 20 (the controller aims to keep L0 around 10 sublevels), and elastic work is shaped even earlier. When admission control is queuing, latency rises but the system stays stable. When it is overwhelmed, you get cascading failures.

Hybrid Logical Clocks (HLC). HLC combines physical wall-clock time with a logical counter. CockroachDB enforces a maximum clock offset between nodes (default 500ms). If a node detects its clock is skewed beyond 80% of max-offset relative to a majority of peers, it self-terminates. Clock skew within the allowed window causes read uncertainty restarts: invisible to operators but directly affecting tail latency.

Node liveness. Each node renews a liveness record via heartbeat with a fixed expiry. If a node fails to renew, the cluster considers it dead and redistributes leases and replicas. Liveness records are stored in the KV layer, not a SQL table. Recent versions are transitioning toward store-level liveness and lease-based failure detection, reducing dependence on the centralized liveness record. By default, a node renews its liveness record every ~3 seconds, and the record expires ~6 seconds after the last successful renewal.

How failures propagate through the layers

The layered design means failures do not stay contained. Understanding propagation is the core diagnostic skill.

LSM compaction death spiral. Write rate exceeds compaction throughput. L0 sublevel count climbs past 10, then 20. Read amplification increases, making reads and compaction itself slower. This is a positive feedback loop. Eventually Pebble stalls writes. The node cannot process Raft heartbeats during stalls, causing it to lose range leases and appear partially unavailable. If multiple nodes hit this simultaneously, the entire cluster becomes unavailable.

Raft liveness failure. A node becomes slow (GC pause, disk stall, CPU saturation), cannot process Raft heartbeats, loses leadership, and the cluster redistributes leases. This creates cascading unavailability windows. The oscillation pattern is characteristic: liveness lost, then recovered, then lost again.

Clock skew cascade. NTP failure causes drift. Initially only the uncertainty interval widens, causing more read restarts and higher latency. If drift exceeds 80% of max-offset (400ms by default), nodes self-terminate. Multiple nodes with shared NTP infrastructure means quorum loss.

Hot range bottleneck. A single range receives disproportionate traffic due to sequential key patterns (timestamp-prefixed primary keys, auto-incrementing IDs, single-row counters). One node saturates while the rest of the cluster idles. The asymmetry is the diagnostic marker.

Intent accumulation. Long-running or abandoned transactions leave write intents that block other transactions. If intent resolution cannot keep up, latency cascades across the cluster. Other transactions encountering intents must resolve them, adding latency system-wide.

Design tradeoffs that shape operations

Every design decision in CockroachDB creates operational consequences. Understanding these tradeoffs helps you anticipate where the system will break under your specific workload.

Serializable isolation by default. CockroachDB enforces serializable snapshot isolation. This is correctness-first: no read phenomena, no anomalies. The cost is higher contention under concurrent writes to the same keys. Transaction restarts (writetooold, txnpush) are normal in a serializable database, but they are also the primary mechanism by which contention manifests. If your workload has hot keys, serializable isolation will make it visible.

Per-range Raft overhead. Every range runs an independent Raft state machine. At 10,000 ranges per node, Raft ticking consumes real CPU even with zero query traffic. At 50,000+ ranges, Raft processing alone may consume a significant fraction of a core. This is why range count is a scaling dimension distinct from data volume. Adding data without adding nodes increases per-node range count and per-node CPU baseline.

LSM storage cliff-edge behavior. The LSM compaction model has a positive feedback loop: when compaction falls behind, reads get slower, which makes compaction itself slower because more disk seeks are needed per compaction job. The degradation curve is cliff-edge, not gradual. A system at 5 L0 sublevels today can hit 20+ and write stalls within minutes during a write burst. This is fundamentally different from B-tree storage engines where degradation is more linear.

No heartbeat prioritization. CockroachDB uses a single gRPC port for all inter-node communication: Raft heartbeats, log entries, DistSQL shuffling, and snapshots. There is no way to prioritize Raft heartbeats over data transfer at the application level. Under network saturation, heartbeats compete with bulk data transfers, which can cause liveness failures.

Signals to watch in production

The layered architecture means each layer has its own observable signals. The most effective monitoring correlates signals across layers rather than treating each in isolation.

SignalLayerWhy it mattersWarning sign
L0 sublevel count (storage_l0_sublevels)StorageMost predictive signal for storage-driven degradation. Biggest blind spot for most teams.Greater than 10 sustained. Greater than 20 means write stalls imminent.
WAL fsync latency (storage_wal_fsync_latency)StorageWAL fsync is on the critical path for every write. Directly impacts Raft commit time.P99 above 50ms on SSDs.
Range unavailability (ranges_unavailable)Raft / RangeAny nonzero value means some keyspace cannot be read or written. Live user impact.Any nonzero value.
Clock offset (clock_offset_meannanos)HLCClock skew causes read restarts and, at extreme values, node self-termination.Above 250ms (50% of default max-offset).
Admission control wait time (admission.wait_durations.*)Admission controlQueuing means the system is at capacity. The kv-stores queue directly reflects LSM health.Sustained average wait above 10ms.
Node liveness statusLivenessLoss of liveness triggers lease redistribution and transient unavailability.Unexpected transition to not-live.
Transaction restart rate by cause (txn_restarts)TransactionDistinguishes contention (writetooold), clock skew (readwithinuncertainty), and app conflicts (txnpush).Above 10% of total transactions. Any readwithinuncertainty is a clock signal.
MVCC garbage bytesStorage / TransactionDead data accumulating. Protected timestamps can silently block GC.Growing without bound.
KV write latency (exec_latency)KVIsolates storage and replication latency from SQL planning overhead.P99 at 5x baseline.
Raft log commit latency (raft.process.logcommit.latency)Raft / StorageRising means WAL writes are getting slower. Disk I/O bottleneck.Above 50ms on SSDs.

How Netdata helps

  • Per-second granularity matters for CockroachDB because sub-second write stalls and brief unavailability windows are invisible at 15 to 30 second scrape intervals.
  • Correlating L0 sublevel count with admission control queue depth and SQL latency in a single view shortens the path from “queries are slow” to “compaction is behind and admission control is throttling.”
  • Clock offset and readwithinuncertainty restart rate side by side make clock skew immediately visible before it reaches the self-termination threshold.
  • WAL fsync latency correlated with disk I/O utilization and Raft log commit latency isolates whether write latency is storage-driven or network-driven.
  • Per-node breakdowns prevent hot range bottlenecks and single-node degradation from hiding under cluster averages.
  • ML-based anomaly detection on L0 sublevel trajectory catches the slowly growing pattern that precedes most compaction death spirals.

Netdata’s CockroachDB monitoring with Netdata brings these signals together with per-second metrics and ML anomaly detection.

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.