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-query-rule-not-matching ▌

Operations Guides

ProxySQL query rule not matching: zero hits, silent regex failures, and broken routing

A critical query rule (write routing, read/write splitting, query caching) shows zero hits in stats_mysql_query_rules. Queries that should match it are falling through to the default hostgroup or a catch-all rule instead. The rule exists in runtime_mysql_query_rules, it looks correct, and there are no errors in the ProxySQL log.

The proxy parsed your rule, compiled the regex, and loaded it to runtime. It just never matches any query. Meanwhile, writes may be landing on read-only replicas (MySQL error 1290) or reads may be piling onto the writer hostgroup unnecessarily. If replicas are not configured read_only, writes can silently succeed on a non-primary backend and never reach the authoritative source.

A rule with zero hits is not necessarily broken. stats_mysql_query_rules resets every time you run LOAD MYSQL QUERY RULES TO RUNTIME. A rule that was just loaded will show zero hits until traffic flows. The real signal is a rule that should be matching high-volume queries showing zero or near-zero hits while the default or fallback rule absorbs traffic that belongs to it.

What this means

ProxySQL evaluates mysql_query_rules in ascending rule_id order. The first rule that matches and has apply=1 terminates evaluation and determines the destination hostgroup, cache TTL, timeout, and any query rewrite. If no rule matches, the query goes to the default hostgroup configured for the user.

When a specific rule shows zero hits, one of these is happening:

  1. The regex compiled silently but never matches. LOAD MYSQL QUERY RULES TO RUNTIME succeeds without error even when a regex pattern in match_digest or match_pattern is invalid. The rule loads, becomes active, and matches nothing. No error is logged. This is the single most common cause.

  2. match_digest is matching against something that was stripped. match_digest matches the normalized query digest: parameters replaced with ?, and SQL comments removed. A pattern that expects comment text or literal parameter values will never match a digest.

  3. A lower rule_id is shadowing your rule. A broadly-matching rule earlier in the chain catches queries before they reach your more specific rule. If that earlier rule has apply=1, your rule is dead code.

  4. apply is missing, so a later rule overrides the destination. The query matches your rule, but evaluation continues. A subsequent rule with different destination_hostgroup wins.

  5. The username field contains the literal string 'NULL' instead of SQL NULL. ProxySQL treats SQL NULL in the username field as “match any user.” The literal string 'NULL' matches only a user literally named “NULL.” Both display identically in query output, which is why this goes unnoticed.

flowchart TD
    A["Critical rule shows
zero hits"] --> B{"Rule exists in
runtime_mysql_query_rules?"} B -- No --> C["Missing from runtime:
LOAD MYSQL QUERY RULES TO RUNTIME"] B -- Yes --> D{"Default/catch-all rule
absorbing traffic?"} D -- Yes --> E{"Lower rule_id
catching first?"} E -- Yes --> F["Rule shadowing"] E -- No --> G{"Regex pattern valid
against actual digest?"} G -- No --> H["Silent compile failure"] G -- Yes --> I{"match_digest used
for comments/literals?"} I -- Yes --> J["Digest strips comments:
use match_pattern"] I -- No --> K["Check apply flag,
username field, flagIN/flagOUT"]

Common causes

CauseWhat it looks likeFirst thing to check
Invalid regex (silent compile failure)Rule loads without error, zero hits, no log entryTest the regex pattern against actual query text or digest
match_digest matching stripped contentPattern references comments or literal values that the digest normalizes awayCompare the pattern against digest_text in stats_mysql_query_digest
Rule shadowing by lower rule_idDefault or broad rule has high hits; specific rule has zeroList all rules ordered by rule_id, check for overlap
Missing apply=1Rule has hits but queries still land in wrong hostgroupCheck apply column in runtime_mysql_query_rules
username field set to literal 'NULL'Rule matches nothing despite correct regexCheck if username column is SQL NULL vs the string 'NULL'
flagIN/flagOUT chain brokenRule has flagIN > 0 but no prior rule sets the matching flagOUTTrace the flag chain from flagIN=0

Quick checks

All commands below query the ProxySQL admin interface on port 6032. Substitute your actual credentials; the examples use ProxySQL defaults. Passing the password on the command line exposes it in the process list, so use a defaults file or MYSQL_PWD in production.

# Check rule hit counts
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;"
# Inspect active rule configuration (runtime layer, not memory)
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT rule_id, active, match_digest, match_pattern, \
      destination_hostgroup, apply, username, schemaname, \
      flagIN, flagOUT, cache_ttl, re_modifiers \
      FROM runtime_mysql_query_rules ORDER BY rule_id;"
# See where queries are actually landing (top 20 by frequency)
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 \
      ORDER BY count_star DESC LIMIT 20;"
# Check for read-only errors (1290) indicating writes on replicas
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT * FROM stats_mysql_errors ORDER BY last_seen DESC LIMIT 20;"
# Verify config layer consistency: memory vs runtime
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT COUNT(*) AS memory_rules FROM mysql_query_rules; \
      SELECT COUNT(*) AS runtime_rules FROM runtime_mysql_query_rules;"
# Check for username field set to literal string 'NULL' instead of SQL NULL
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT rule_id, username, username IS NULL as is_sql_null \
      FROM runtime_mysql_query_rules WHERE username = 'NULL';"

How to diagnose it

  1. Confirm you are reading from runtime, not memory. Query runtime_mysql_query_rules, not mysql_query_rules. The memory layer is staging. A rule can exist in memory but never have been loaded to runtime. If the rule count differs between the two tables, someone made a change without running LOAD MYSQL QUERY RULES TO RUNTIME.

  2. Check whether hits were just reset. stats_mysql_query_rules resets to zero every time rules are loaded to runtime. If someone recently reloaded rules, zero hits is expected until traffic flows. Compare the hit timestamp against ProxySQL_Uptime and any recent config changes.

  3. Identify where the target queries actually land. Look in stats_mysql_query_digest for the query patterns you expect your rule to catch. Check the hostgroup column. If writes are landing in a reader hostgroup or SELECTs are hitting the writer, the routing rule is not matching.

  4. Test the regex manually. Copy the match_digest or match_pattern value and test it against the actual digest_text from stats_mysql_query_digest. ProxySQL does not provide a built-in regex tester in the admin interface, so test externally:

# Extract the digest text and pattern, then test with grep -P or python re
# Example: does the pattern match the digest?
python3 -c "
import re
digest = 'SELECT * FROM users WHERE id=?'
pattern = r'^SELECT \* FROM users WHERE id = 42'
print('MATCH' if re.search(pattern, digest) else 'NO MATCH')
"

The most common mistake: the digest normalizes literals to ? and strips comments, so a pattern like ^SELECT \* FROM users WHERE id = 42 will never match a digest that reads SELECT * FROM users WHERE id=?.

  1. Review rule ordering for shadowing. List all rules by rule_id. Look for broad patterns (like ^SELECT or .*) at lower rule_id values that would catch queries before your specific rule. If a broad rule has apply=1, everything after it is dead code for the queries it catches.

  2. Trace flagIN/flagOUT chains. A rule with flagIN=0 is evaluated for all queries. A rule with flagIN=N is only evaluated if a prior rule set flagOUT=N. If your rule has flagIN > 0 but no earlier rule produces that flag, your rule is unreachable.

  3. Check the username field for SQL NULL vs the string 'NULL'. SQL NULL in this field means “match any user.” The literal string 'NULL' matches only a user named “NULL.” Distinguish them with username IS NULL. Set the field to NULL (not an empty string) to match all users.

Fixes

Invalid regex pattern (silent compile failure)

LOAD MYSQL QUERY RULES TO RUNTIME does not error on an invalid regex. The rule loads and becomes active, but it never matches.

To fix: simplify the regex and reload. Remove complex quantifiers, character classes, or backreferences that may not be supported by the configured engine. The mysql-query_processor_regex variable controls which engine is used. Check your current setting:

SELECT variable_value FROM global_variables WHERE variable_name='mysql-query_processor_regex';

The value is 1 for PCRE (the default) or 2 for RE2; the selector has been present since the 1.4.x engine-configuration era.

RE2 has different capabilities than PCRE: no backreferences, no lookahead. If your pattern relies on features the configured engine does not support, it will silently fail to match.

After fixing:

LOAD MYSQL QUERY RULES TO RUNTIME;
-- Then verify hits are accumulating
SELECT rule_id, hits FROM stats_mysql_query_rules WHERE rule_id = <your_rule_id>;

match_digest stripping comments and parameters

match_digest matches the normalized digest. The digest has:

  • All literal values replaced with ?
  • All SQL comments (/* ... */, --, #) removed
  • Whitespace normalized

If your rule uses match_digest to match on a comment hint (like /* route=writer */) or on a specific literal value, it will always get zero hits. Switch the same pattern to match_pattern, which matches the raw query text as received from the client.

Note: match_digest cannot be used for query rewriting. Query rewriting requires match_pattern plus replace_pattern.

Rule ordering shadowing

Rules are evaluated in ascending rule_id order. A catch-all rule at rule_id=1 with apply=1 will prevent every subsequent rule from ever being evaluated. More specific rules must have lower rule_id values than the broad rules they specialize.

To fix: either reorder rule_id values so specific rules come first, or remove apply=1 from the broad rule (but then verify the intended rule has apply=1 so evaluation stops there).

Missing apply=1

If a matching rule lacks apply=1, evaluation continues to the next rule. The query uses the settings of the last matching rule in the chain, not the first. This means a read-routing rule at rule_id=100 and a write-routing rule at rule_id=200 where both match the same query will route to rule_id=200’s destination. If that is the reader hostgroup, writes silently land on replicas.

To fix: add apply=1 to the rule that should terminate evaluation for its matched queries.

username field containing literal string NULL

Setting the username column to the string 'NULL' causes ProxySQL to match only connections from a user literally named “NULL”. To match all users, set the field to SQL NULL. An empty string behaves the same way in the matching predicate, but SQL NULL makes the intent explicit:

UPDATE mysql_query_rules SET username=NULL WHERE rule_id=<your_rule_id>;
LOAD MYSQL QUERY RULES TO RUNTIME;

Version-specific edge cases

Two known issues can produce zero-hit rules:

  • caching_sha2_password full authentication and schema selection: Issue #4935 reports that a first full-authentication login can select mysql_users.default_schema (or information_schema) instead of the database requested by the client. This can defeat schema-specific rules, rather than bypassing query processing entirely. PR #4941 was merged into the 3.0 line on 2025-05-12, after 2.7.3, so 2.7.3 remains affected.

  • ProxySQL 2.6.6: Issue #4695 reports a SIGSEGV (signal 11) after a rules update and LOAD MYSQL QUERY RULES TO RUNTIME, but the issue remains open and the maintainer found little evidence that the load itself caused the crash. Treat this as an unresolved report, not an established 2.6.6 defect.

PCRE2 compilation failures are logged as errors with the failed offset and PCRE2 message. RE2 is compiled in quiet mode, so a bad RE2 pattern may fail only by never matching; test the pattern explicitly.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
stats_mysql_query_rules.hits per rule_idDirectly shows which rules are matching trafficCritical rule at zero hits; default rule with unexpectedly high hits
stats_mysql_query_digest.hostgroupShows where each query pattern actually landsWrite digests (INSERT, UPDATE, DELETE) in reader hostgroup
stats_mysql_errors (errno 1290)Read-only errors from replicas indicate writes routed wrongAny 1290 errors from reader hostgroup backends
Default/catch-all rule hit rateMeasures how much traffic falls through without matching specific rulesSustained increase indicates queries not matching intended rules
runtime_mysql_query_rules vs mysql_query_rules row countsDetects uncommitted config changesCounts differ means someone changed memory without loading to runtime
Query_Processor_time_nsecComplex regex rules add CPU overhead per querySustained increase after adding rules may indicate regex complexity

Prevention

  • Validate regex before loading. Test every match_digest pattern against actual digest_text values from stats_mysql_query_digest. Test every match_pattern against actual client query text. Use the digest column (exact match on digest hash like 0x...) instead of regex when you need to match a specific query shape, as it is the fastest matching method.

  • Enforce rule_id ordering in config management. Place specific rules at lower rule_id values than broad catch-all rules. Make the catch-all rule the highest rule_id.

  • Always set apply=1 on terminal rules. Rules that should determine the final routing decision must terminate evaluation. Leaving apply=0 creates a silent routing time bomb where a future rule addition can override the intended destination.

  • Monitor rule hit distribution as routing validation. Track stats_mysql_query_rules.hits per rule over time. A critical write-routing rule with zero hits while the default rule has high hits is a routing failure, not a monitoring curiosity.

  • Track the default rule hit rate. The catch-all or fallback rule should handle a small fraction of total queries. If it starts absorbing a large share, rules upstream are broken.

  • Use SAVE MYSQL QUERY RULES TO DISK after verifying. A rule that works in runtime but was never saved to disk will vanish on the next ProxySQL restart.

How Netdata helps

  • Per-second rule hit tracking. Netdata collects stats_mysql_query_rules at per-second resolution. A rule that drops to zero hits is visible within seconds, not at the next 5-minute polling interval.
  • Correlation with backend traffic and errors. When a rule stops matching, the immediate downstream effects are a shift in per-hostgroup query counts (stats_mysql_connection_pool) and potentially MySQL 1290 errors from reader backends. Netdata surfaces all three signals on the same timeline.
  • Anomaly detection on rule hit patterns. Netdata flags when a rule’s hit count deviates from its established baseline, which catches gradual degradation before it becomes a complete outage.
  • Runtime table collection. Per-second collection of runtime tables (runtime_mysql_query_rules, stats_mysql_query_digest) makes divergence between the memory and runtime layers detectable without manual polling.