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-sql-latency-high

Operations Guides

CockroachDB SQL latency high: sql_service_latency, per-fingerprint diagnosis, and the layers

P99 sql_service_latency is climbing. Applications are timing out or retrying. The DB Console overview chart shows the spike, but the aggregate histogram cannot tell you which query is slow or which subsystem is adding the latency.

The most common diagnostic mistake is stopping at aggregate P99. A single slow query hiding among thousands of fast ones barely moves aggregate P99 but can take down an endpoint. A system-wide storage problem lifts all fingerprints together. Without per-fingerprint breakdown, you cannot distinguish “one query regressed” from “everything got slower.”

What this means

sql_service_latency is a histogram metric (nanoseconds, per-node gateway) measuring end-to-end time from when the cluster receives a SQL statement to when it finishes executing. It includes parse, plan, and execute phases but does not include time to return results to the client. Because it is measured at the gateway node, it includes network time to DistSQL execution nodes.

sql_exec_latency is the execution-only subset. The difference between the two reveals how much time is spent in parsing and planning versus execution.

Properties that affect interpretation:

  • Histogram buckets are pre-defined. P99 is approximate and can be misleading for bimodal distributions where latency splits between a fast path and a slow path.
  • Statement statistics are aggregated per fingerprint. A change in workload mix (more expensive queries appearing) looks identical to a system slowdown from the aggregate histogram’s perspective.
  • Per-fingerprint statistics have a staleness window. CockroachDB collects statement statistics in-memory and flushes them periodically, by default every 10 minutes (sql.stats.flush.interval). For real-time data during an active incident, query crdb_internal tables directly.

Common causes

CauseWhat it looks likeFirst thing to check
LSM compaction debtAll fingerprints slow, KV exec_latency rising, read amplification climbingstorage_l0_sublevels per store
Transaction contentionSpecific fingerprints slow, txn_restarts dominated by writetoooldcontention_time_avg in per-fingerprint stats
Hot range bottleneckOne node CPU-saturated while others idle, specific table latency highPer-range QPS via crdb_internal.ranges
Admission control throttlingAdmission queue depth and wait durations elevatedAdmission metrics per store
DistSQL or network latencyRPC latency elevated between node pairs, queries touching multiple nodesround_trip_latency per node pair
Disk I/O saturationWAL fsync latency elevated, Raft log commit latency risingiostat on the store device

Quick checks

# Check aggregate SQL service and execution latency
curl -s http://localhost:8080/_status/vars | grep -E 'sql_service_latency|sql_exec_latency'

# Check KV execution latency and Raft log commit latency
curl -s http://localhost:8080/_status/vars | grep -E 'exec_latency|raft.process.logcommit'

# Check LSM L0 sublevels (per store)
curl -s http://localhost:8080/_status/vars | grep storage_l0_sublevels

# Check read amplification
curl -s http://localhost:8080/_status/vars | grep read_amplification

# Check admission control queue wait times and overload
curl -s http://localhost:8080/_status/vars | grep admission

# Check transaction restart rate and cause breakdown
curl -s http://localhost:8080/_status/vars | grep txn_restarts

# Check inter-node RPC latency
curl -s http://localhost:8080/_status/vars | grep round_trip_latency
-- Top 20 statements by execution count with average latency
SELECT key, count, service_lat_avg
FROM crdb_internal.node_statement_statistics
ORDER BY count DESC LIMIT 20;

-- Statements with the highest average contention time
SELECT key, count, contention_time_avg
FROM crdb_internal.node_statement_statistics
WHERE contention_time_avg > 0
ORDER BY contention_time_avg DESC LIMIT 20;

-- Active contention events
SELECT * FROM crdb_internal.transaction_contention_events
ORDER BY contention_duration DESC LIMIT 50;

Note: crdb_internal tables are unsupported, may change between versions, and some require admin privileges. Use them for manual diagnosis during incidents, not for automated monitoring pipelines.

How to diagnose it

flowchart TD
    A["P99 sql_service_latency rising"] --> B["Drill into per-fingerprint stats"]
    B --> C{"One fingerprint or all?"}
    C -->|"One fingerprint slow"| D["Isolate the query"]
    C -->|"All fingerprints slow"| E["System-wide issue"]
    D --> F["Check contention, admission, plan"]
    E --> G["Check L0 sublevels, CPU per node, disk I/O, RPC latency"]
    F --> H["Narrow to layer: contention, admission, or storage"]
    G --> H
  1. Confirm the latency increase is real. Check sql_service_latency P99 on each node individually, not just the cluster aggregate. One slow gateway node can skew the aggregate while most nodes are healthy. Gate your investigation on node uptime greater than 10 minutes to avoid false positives from cold cache after restart.

  2. Break down by fingerprint. Query crdb_internal.node_statement_statistics ordered by service_lat_avg descending. This in-memory table exposes means and variances, not percentiles. If one or a few fingerprints dominate, the problem is query-specific. If all fingerprints are slow, the problem is system-wide. Remember that the stats have a staleness window.

  3. Check the gap between sql_service_latency and sql_exec_latency. If sql_service_latency rises but sql_exec_latency is stable, the overhead is in parsing or planning, not execution. This can indicate missing statistics causing plan regressions, or an overloaded gateway node spending time on plan compilation.

  4. Examine per-fingerprint contention time. Query contention_time_avg in crdb_internal.node_statement_statistics (admission wait time is not exposed as a per-fingerprint column; it exists at the cluster level). High average contention points to serialization conflicts. If you can access admission control metrics, sustained nonzero wait durations mean the system is at capacity and deliberately throttling.

  5. If system-wide, check the storage layer. Pull storage_l0_sublevels, read amplification, and exec_latency per store. L0 sublevels above 10 indicate compaction is falling behind. Read amplification above 25 means each read consults too many SSTables. Rising KV exec_latency without SQL changes confirms the storage or replication layer is degrading.

  6. Check for hot ranges. If latency is concentrated on specific tables, check the DB Console Hot Ranges page, which ranks ranges by QPS (crdb_internal.ranges does not expose a QPS column). A range with 10x the average QPS indicates a hot spot. Look for sequential primary keys, timestamp-prefixed keys, or single-row counters as the root cause.

  7. Check transaction restart causes. Pull txn_restarts and look at the cause breakdown. writetooold means contention (schema or workload design). readwithinuncertainty means clock skew (infrastructure). txnpush means transaction conflicts (application logic). Each requires a different response.

  8. Check for background workload interference. Query crdb_internal.jobs for running backups, schema changes, or imports. These generate I/O that competes with foreground queries. Schema change backfills and backups can measurably increase foreground latency.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
sql_service_latency P99 per nodeClient-visible query latency at the gatewaySustained P99 above SLO or 2x rolling baseline
sql_exec_latency P99 per nodeIsolates execution from parse/plan overheadDiverging from sql_service_latency indicates planning overhead
Per-fingerprint service_lat_avgMean latency per fingerprint catches single-query regressions hidden by aggregatesAny fingerprint above 2x its own rolling baseline
Per-fingerprint contention_time_avgTime spent waiting on transaction locksNonzero and growing for OLTP fingerprints
storage_l0_sublevels per storeEarliest predictor of storage-driven latencyAbove 5 sustained warrants attention, above 10 is active degradation
Read amplification per store (rocksdb_read_amplification)SSTable files consulted per readAbove 25 means compaction health is degraded
exec_latency (KV) P99Storage-layer latency below SQLRising without SQL changes means storage or replication degrading
raft.process.logcommit.latencyWAL fsync critical path for writesAbove 50ms on SSDs signals I/O saturation
txn_restarts by causeContention and clock skew diagnosticsreadwithinuncertainty nonzero means clock problem
round_trip_latency per node pairInter-node network healthAny pair above 5x baseline
Admission queue wait durationsFlow control throttling indicatorSustained average wait above 10ms over 5 minutes

Fixes

LSM compaction debt

If storage_l0_sublevels is above 10 and rising:

  • Reduce write rate. Pause bulk operations (IMPORT, RESTORE, batch inserts). This gives compaction room to catch up.
  • Check if a specific store is affected. L0 is per-store. One hot store with a slow disk can degrade while others are fine.
  • Monitor the L0 trend. If L0 is elevated but decreasing, compaction is recovering. If it is still rising with write stalls active, the node needs write load reduction until compaction catches up.
  • Do not reduce compaction concurrency to lower I/O impact. This trades foreground improvement for worse L0 growth.

See CockroachDB storage_l0_sublevels climbing for detailed treatment.

Transaction contention

If contention_time_avg is high and txn_restarts show writetooold:

  • Identify the contended keys via crdb_internal.transaction_contention_events.
  • Check for hot keys. Multiple transactions writing the same key, or sequential key patterns on the same range, create serialization conflicts.
  • Short-term: reduce the scope or frequency of the contended transactions.
  • Long-term: redesign the schema to reduce write conflicts. Hash-prefixed keys, explicit locking hints, or workload partitioning can help.

Hot range bottleneck

If one node is CPU-saturated while others idle:

  • Identify the hot range via the DB Console Hot Ranges page (per-range QPS is not exposed in crdb_internal.ranges).
  • Short-term: ALTER TABLE ... SPLIT AT VALUES (...) to manually split the hot range. This is a schema change: it persists new range boundaries and triggers background split work (snapshots, rebalancing), so use it deliberately and only for genuinely hot keys.
  • Long-term: redesign primary keys to avoid sequential patterns. UUID or hash-prefixed keys distribute writes across ranges.

See CockroachDB hot range bottleneck for detailed treatment.

Admission control throttling

If admission wait durations are elevated:

  • The system is at or beyond capacity. Admission control is protecting itself by adding latency to maintain stability.
  • Check which queue is active. The store queue (kv-stores) throttles because L0 is elevated. The kv or sql-kv-response queues throttle because of CPU or memory pressure. The elastic-cpu queue throttling is often acceptable (background work being deprioritized).
  • Reduce load or add capacity. Admission control is not the problem. It is the signal that you have no burst headroom.

Disk I/O saturation

If raft.process.logcommit.latency is above 50ms on SSDs or WAL fsync latency is elevated:

  • Check iostat for device queueing. Average read latency above 1ms or write latency above 2ms on SSD indicates queueing.
  • Cloud volumes may be throttling. EBS gp3 baseline (3000 IOPS, 125 MiB/s) can be exceeded by moderate CockroachDB load. Burst credits exhaust, then sustained throttling follows.
  • Separate WAL onto a dedicated device to isolate the most latency-sensitive I/O from compaction traffic.

Clock skew

If txn_restarts show readwithinuncertainty as a cause:

  • Check clock_offset_meannanos on all nodes. Any sustained offset above 50% of --max-offset (default 500ms) needs urgent attention.
  • Check NTP on all nodes: chronyc tracking or ntpstat.
  • A node self-terminates at 80% of max-offset. Fix the clock before restarting a self-terminated node or it will crash-loop.

Prevention

  • Establish per-fingerprint baselines. Aggregate P99 hides query-specific regressions. Track P99 per fingerprint against a rolling 1-hour mean. Alert on deviations above 2x.
  • Instrument L0 sublevel count. This is the single most predictive storage signal. It gives 10 to 30 minutes of warning before write stalls.
  • Break down transaction restarts by cause. A total retry rate alarm wastes diagnosis time. writetooold, readwithinuncertainty, and txnpush each require a different response.
  • Use per-node metrics, not cluster averages. One hot leaseholder or overloaded node hides under healthy global metrics.
  • Monitor admission control as a capacity signal. Regular queuing means zero burst headroom.
  • Track backup and schema change job duration trends. Backups that grow from 20 minutes to 3 hours eventually overlap with the next backup window, compounding I/O contention.

How Netdata helps

  • Per-second granularity on sql_service_latency and sql_exec_latency histograms reveals latency shifts that 15 to 30 second scrape intervals miss, especially brief spikes during lease transfers or range splits.
  • Correlating SQL latency with L0 sublevels, read amplification, and KV exec_latency in a single view collapses the time between seeing the symptom and identifying the storage layer as the cause.
  • Admission control queue depth and wait durations alongside SQL latency immediately distinguishes throttling-driven latency from storage-driven latency.
  • Transaction restart cause breakdown correlated with latency tells you whether the tail is contention, clock skew, or application conflict without a separate investigation.
  • RPC latency per node pair displayed alongside SQL metrics catches DistSQL and network-driven latency that inflates sql_service_latency at the gateway.

Netdata’s CockroachDB monitoring with Netdata brings these signals together with per-second metrics and 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.