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 / proxysql / proxysql-read-write-split-misrouting ▌

Operations Guides

ProxySQL read/write split misrouting: writes silently reaching replicas

ProxySQL read/write split routes queries based on mysql_query_rules evaluated in ascending rule_id order. When that chain is misconfigured, write queries can match a read-routing rule and land on a replica hostgroup. If the replica enforces super_read_only, the write fails with MySQL error 1290 and the client sees an error. If it does not, the write succeeds on the replica, never reaches the primary, and the client receives a success response. Data diverges silently with no error at any layer.

The proxy is routing queries exactly as its rules dictate. This is a configuration problem, not a bug. No single metric in stats_mysql_global flags it directly. You detect it by examining stats_mysql_query_rules hit distribution and stats_mysql_query_digest for write digests appearing in reader hostgroups.

What this means

ProxySQL evaluates mysql_query_rules in ascending rule_id order. Only rules with active=1 are evaluated. When a rule matches and has apply=1 (the default), evaluation stops and the query routes to that rule’s destination_hostgroup. If a matching rule has apply=0, evaluation continues and a subsequent matching rule can override the destination_hostgroup.

The canonical read/write split uses three rules, all with apply=1:

  1. A low rule_id for ^SELECT.*FOR UPDATE (or equivalent locking reads) routing to the writer hostgroup.
  2. A middle rule_id for ^SELECT routing to the reader hostgroup.
  3. A catch-all .* rule routing to the writer hostgroup.

When any rule is missing, mis-ordered, lacks apply=1, or has a regex that matches unintended queries, writes can fall through to the reader hostgroup.

flowchart TD
    Q["Incoming query"] --> R1{"rule_id=100
SELECT.*FOR UPDATE
apply=1?"} R1 -- "no match" --> R2{"rule_id=200
^SELECT
apply=1?"} R2 -- "write matches
unanchored pattern
or apply=0" --> RH["reader hostgroup"] RH --> RO{"replica
super_read_only?"} RO -- "OFF" --> SD["write succeeds
silent divergence
no error to client"] RO -- "ON" --> E1290["error 1290
client sees failure"] R1 -- "match, apply=1" --> WH["writer hostgroup"] R2 -- "no match" --> R3{"rule_id=300
catch-all .*
apply=1"} R3 --> WH

Common causes

CauseWhat it looks likeFirst thing to check
Missing apply=1 on a routing ruleRule matches but a later read rule overrides the destination. stats_mysql_query_rules shows hits on both rules for overlapping traffic.SELECT rule_id, apply FROM runtime_mysql_query_rules ORDER BY rule_id;
Unanchored read regexA SELECT pattern without the ^ anchor in match_pattern matches any query containing SELECT, including INSERT INTO ... SELECT ... or UPDATE ... = (SELECT ...).SELECT rule_id, match_digest, match_pattern, destination_hostgroup FROM runtime_mysql_query_rules ORDER BY rule_id;
Rule_id ordering errorA newly added rule with a lower rule_id shadows existing rules. Hit distribution shifts after a config change.SELECT rule_id, match_digest, destination_hostgroup, apply, active FROM runtime_mysql_query_rules ORDER BY rule_id;
transaction_persistent=1 with backend autocommit=0A SELECT routed to a reader backend with autocommit=0 opens an implicit transaction. With transaction_persistent=1, the backend connection is pinned to the client session. Subsequent writes go to that reader.Check @@autocommit on backend MySQL and transaction_persistent in mysql_users.
^SELECT.*FOR UPDATE rule never matchesThe locking-read rule has zero hits in stats_mysql_query_rules. SELECT FOR UPDATE queries route to the reader hostgroup instead.SELECT rule_id, hits FROM stats_mysql_query_rules ORDER BY rule_id;

Quick checks

All of these are read-only queries against the ProxySQL admin interface (default port 6032). They do not modify configuration or affect traffic. Adjust credentials if your deployment does not use the defaults.

# Check rule ordering, match patterns, apply flags, and active status
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT rule_id, active, match_digest, match_pattern, destination_hostgroup, apply FROM runtime_mysql_query_rules ORDER BY rule_id;"
# Check per-rule hit counts to see where queries are actually going
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT rule_id, hits FROM stats_mysql_query_rules ORDER BY rule_id;"
# Look for write digests routed to reader hostgroups
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT hostgroup, schemaname, username, digest_text, count_star FROM stats_mysql_query_digest WHERE digest_text LIKE 'INSERT%' OR digest_text LIKE 'UPDATE%' OR digest_text LIKE 'DELETE%' ORDER BY count_star DESC LIMIT 20;"
# Check for error 1290 from reader hostgroups (indicates super_read_only is catching misroutes)
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT hostgroup, errno, count_star, last_seen FROM stats_mysql_errors WHERE errno=1290 ORDER BY last_seen DESC LIMIT 20;"
# Verify transaction_persistent setting per user
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT username, transaction_persistent FROM mysql_users;"
# Check autocommit_false_is_transaction variable
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT variable_name, variable_value FROM global_variables WHERE variable_name='mysql-autocommit_false_is_transaction';"
# Verify which backends are in which hostgroups
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT hostgroup_id, hostname, port, status FROM runtime_mysql_servers ORDER BY hostgroup_id;"

Note: stats_mysql_errors is available in ProxySQL 2.0.6 and later. On older versions, rely on stats_mysql_query_digest and stats_mysql_query_rules.

How to diagnose it

  1. Establish the expected rule chain. Write down the intended rule_id order, which hostgroup each rule targets, and whether apply=1 is set. The canonical pattern: locking reads to writer, plain SELECTs to reader, catch-all to writer. All with apply=1.

  2. Compare expected vs actual hit distribution. Query stats_mysql_query_rules for per-rule hit counts. If the write-routing rule (or catch-all) has unexpectedly low or zero hits while the read rule has inflated hits, queries are falling through. Note: stats_mysql_query_rules resets when rules are loaded to runtime, so hit counts only reflect traffic since the last reload.

  3. Search for write digests in reader hostgroups. Query stats_mysql_query_digest filtering for INSERT, UPDATE, and DELETE where the hostgroup is a reader. Any row here is evidence of misrouting. The count_star column tells you how many times it has happened.

  4. Check for error 1290. If super_read_only is enabled on replicas, misrouted writes produce error 1290. Check stats_mysql_errors for errno=1290 from reader hostgroups. If you see zero 1290 errors but write digests appear in reader hostgroups, your replicas likely do not have super_read_only enforced and writes are succeeding silently.

  5. Inspect regex patterns. If writes are matching a read rule, the pattern may be missing the ^ anchor or matching too broadly. A SELECT pattern without ^ in match_pattern matches any query containing SELECT anywhere in the text, including INSERT INTO ... SELECT ... or UPDATE ... = (SELECT ...). Using match_digest normalizes the query text (parameter values replaced with ?) and reduces false matches, but the pattern still needs proper anchoring. Consider explicitly routing INSERT, UPDATE, DELETE, and other write statements to the writer hostgroup with dedicated rules at a lower rule_id than the read rule.

  6. Check transaction pinning behavior. If misrouting happens only after a SELECT within the same session, transaction_persistent=1 combined with backend autocommit=0 may be pinning the connection to the reader. Verify backend @@autocommit settings and the transaction_persistent value in mysql_users.

  7. Verify runtime vs disk. If you recently changed rules, confirm the change reached runtime. Query runtime_mysql_query_rules (not mysql_query_rules) to see what is actually live. A fix applied to mysql_query_rules but not loaded to runtime has no effect.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
stats_mysql_query_rules hit distributionShows which rules are matching traffic. Shifts indicate routing changes.Write-routing rule hits drop to zero or catch-all rule hits spike.
stats_mysql_query_digest hostgroup per digestShows where each query type is actually routed.INSERT, UPDATE, or DELETE digests with a reader hostgroup.
stats_mysql_errors errno=1290 countThe loud signal that super_read_only is catching misroutes.Any 1290 errors from reader hostgroups.
stats_mysql_global error packet countersProxySQL-generated error count. Correlates with routing failures.Sustained increase after a rule change.
mysql_users.transaction_persistentDetermines whether transactions pin backend connections.Set to 1 on users whose backends have autocommit=0.
Backend super_read_only statusThe safety net that turns silent divergence into loud failure.Any replica with super_read_only=OFF.

Fixes

Warning: LOAD MYSQL QUERY RULES TO RUNTIME takes effect immediately for all live traffic and resets stats_mysql_query_rules hit counters to zero.

Missing or incorrect apply=1

Every routing rule in the read/write split chain must have apply=1. Without it, evaluation continues and a later rule can override the destination.

UPDATE mysql_query_rules SET apply=1 WHERE rule_id=<rule_id>;
LOAD MYSQL QUERY RULES TO RUNTIME;
SAVE MYSQL QUERY RULES TO DISK;

Verify hit counts after the reload and confirm writes are accumulating on the writer rule.

Unanchored or too-broad read regex

Replace broad patterns with explicit write-routing rules. Instead of relying solely on a catch-all, add dedicated rules for write statements at a lower rule_id than the read rule:

-- Route writes explicitly before the SELECT rule
INSERT INTO mysql_query_rules (rule_id, active, match_digest, destination_hostgroup, apply)
VALUES
  (110, 1, '^INSERT', <writer_hg>, 1),
  (120, 1, '^UPDATE', <writer_hg>, 1),
  (130, 1, '^DELETE', <writer_hg>, 1),
  (140, 1, '^CREATE', <writer_hg>, 1),
  (150, 1, '^DROP',   <writer_hg>, 1),
  (160, 1, '^ALTER',  <writer_hg>, 1);
LOAD MYSQL QUERY RULES TO RUNTIME;
SAVE MYSQL QUERY RULES TO DISK;

Use match_digest rather than match_pattern. Digest-based matching normalizes query text (parameters become ?) and avoids false matches from parameter values or formatting.

Rule_id ordering error

List all rules in rule_id order and trace the evaluation path manually. A common mistake is inserting a new rule at a rule_id between existing rules, inadvertently shadowing a rule that was previously the first match for certain queries.

Transaction pinning with autocommit=0

If backend MySQL servers have autocommit=0 set globally, every SELECT starts an implicit transaction. With transaction_persistent=1 on the ProxySQL user, the backend connection is pinned to the client session and subsequent writes go to the same reader backend.

Two options:

  • Enable autocommit=1 on backend MySQL servers. This is the root fix. ProxySQL expects backends to have autocommit=1 so that queries outside explicit transactions (BEGIN/COMMIT) can be multiplexed freely.

Emergency: deactivate the offending rule

During an active incident with silent data divergence, deactivate the misrouting rule immediately to stop further damage:

-- Disarm the offending rule (takes effect immediately)
UPDATE mysql_query_rules SET active=0 WHERE rule_id=<problem_rule_id>;
LOAD MYSQL QUERY RULES TO RUNTIME;

This is a stopgap. It does not repair data divergence on affected replicas.

Prevention

  • Enforce super_read_only=ON on every replica. This is the single most important safety net. It turns silent divergence into error 1290 that clients and monitoring catch immediately. Without it, misrouted writes succeed and you have no signal until corruption surfaces.
  • Use explicit write-routing rules. Add dedicated rules for INSERT, UPDATE, DELETE, CREATE, DROP, ALTER at rule_id values lower than the read rule. All with apply=1.
  • Prefer match_digest over match_pattern. Digest matching normalizes query text and reduces false matches from parameter values.
  • Audit rule changes. A single rule change can redirect writes to replicas. Treat query rule modifications with the same scrutiny as firewall changes. Log who changed what and when.
  • Monitor hit distribution. Establish a baseline for expected hit counts per rule. Alert on significant deviations, especially when write-routing or catch-all rule hits drop.
  • Verify the three-layer config model after changes. Confirm changes are in runtime (runtime_mysql_query_rules) and persisted to disk. A restart with stale disk config silently reverts a fix.
  • Check backend autocommit. Ensure backends have autocommit=1 unless you have a specific reason otherwise. Combined with transaction_persistent=1, autocommit=0 silently pins writes to reader hostgroups.

How Netdata helps

Netdata’s ProxySQL collector surfaces the signals that reveal misrouting:

  • Per-second query rule hit counts from stats_mysql_query_rules detect routing shifts within seconds of a rule change.
  • Per-hostgroup query digest data from stats_mysql_query_digest makes write digests in reader hostgroups immediately visible on dashboards and charts.
  • Error tracking via stats_mysql_errors catches error 1290 bursts from reader hostgroups when super_read_only is enforced.
  • Connection pool metrics (ConnUsed, ConnFree, ConnERR) distinguish routing problems from backend saturation.
  • ML-based anomaly detection on query rule hit ratios flags unusual shifts even when no explicit threshold is crossed.

Correlate rule hit distribution changes with write digests in reader hostgroups and any spike in error 1290 counts within a single timeline.