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-digest-memory-growth ▌

Operations Guides

ProxySQL query digest memory growth: stats_mysql_query_digest growing unbounded

ProxySQL’s stats_mysql_query_digest table grows without bound. There is no built-in memory cap. On high-cardinality workloads where queries embed unique identifiers (timestamps, UUIDs, session tokens, savepoint names), the digest hash table can balloon to gigabytes, tracked as query_digest_memory in stats_memory_metrics.

The symptoms: ProxySQL runs normally for days or weeks, then develops periodic latency spikes that correlate with monitoring scrapes. RSS creeps upward. In extreme cases, the process is OOM-killed. The digest table is rarely inspected for size, only for query content, so the root cause stays hidden.

The fix: read from stats_mysql_query_digest_reset (returns the data and atomically clears the table), run TRUNCATE TABLE stats_mysql_query_digest, or issue PROXYSQL FLUSH QUERY DIGEST on a schedule. The harder problem is deciding how often to reset, whether to persist digest data externally, and which tuning variables to adjust to reduce cardinality at the source.

What this means

Each unique normalized query pattern generates one entry in stats_mysql_query_digest. ProxySQL normalizes literal values to ?, so SELECT * FROM users WHERE id=1 and SELECT * FROM users WHERE id=2 share a single digest. But when queries embed identifiers that ProxySQL does not normalize, each distinct value creates a separate digest entry.

The query_digest_memory column in stats_memory_metrics reports bytes consumed by this hash table. There is no configurable upper limit. Issue #2095 requested one; it was closed in 2025 without a cap after the maintainers cited digest normalization improvements, atomic TRUNCATE, and exporter observability.

flowchart TD
    A["High-cardinality queries
with embedded IDs"] --> B["Unique digest entries
accumulate"] B --> C["stats_mysql_query_digest
grows without bound"] C --> D["query_digest_memory
rises in stats_memory_metrics"] D --> E["Memory pressure:
RSS growth toward OOM"] D --> F["Traversal cost:
stats reads block inserts"] F --> G["Periodic latency spikes
matching scrape interval"]

When query_digest_memory reaches multiple gigabytes, two operational problems emerge:

  1. Memory pressure: The digest hash table competes with connection buffers, query cache, and jemalloc overhead for process memory. On memory-constrained hosts, this leads to OOM kills or swap degradation.

  2. Latency spikes during stats reads: Every time a monitoring system or a human queries stats_mysql_query_digest, stats_mysql_query_digest_reset, or stats_memory_metrics, ProxySQL traverses the hash table under a lock. On a multi-gigabyte table, this traversal blocks digest insertions and lookups, causing client-facing latency spikes that correlate with the scrape interval.

Stats also reset on restart. If ProxySQL restarts (planned upgrade, OOM kill, host reboot), all digest data is lost silently. External persistence is required for historical baselines.

Common causes

CauseWhat it looks likeFirst thing to check
High-cardinality queries with embedded identifiersquery_digest_memory grows steadily; row count far exceeds distinct query typesTop-N digest query, look for near-duplicate entries differing only in numeric values
mysql-query_digests_no_digits disabledDigest entries differ only in numeric values (IDs, timestamps, savepoint names)Check global_variables for the variable value
Excessive mysql-query_digests_max_query_lengthMore of each query is stored, increasing per-entry memory costCompare variable value against your workload’s query lengths
No periodic reset scheduledquery_digest_memory grows monotonically since process startCompare growth rate against ProxySQL_Uptime
Monitoring scrape causes latency spikesPeriodic latency spikes matching scrape interval, backends idle during spikesCorrelate spike timing with stats_memory_metrics collection

Quick checks

# Check query_digest_memory and overall memory breakdown
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT query_digest_memory, Auth_memory, SQLite3_memory_bytes, mysql_query_rules_memory, jemalloc_active, jemalloc_resident FROM stats_memory_metrics;"
# Count entries in the digest table
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT COUNT(*) AS digest_entries FROM stats_mysql_query_digest;"
# Check all digest-related variables
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT variable_name, variable_value FROM global_variables WHERE variable_name LIKE 'mysql-query_digests%';"
# Check uptime to contextualize growth rate
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT Variable_Value AS uptime_seconds FROM stats_mysql_global WHERE Variable_Name = 'ProxySQL_Uptime';"
# Top 20 digests by execution count to spot cardinality bombs
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT digest_text, count_star FROM stats_mysql_query_digest ORDER BY count_star DESC LIMIT 20;"
# Look for near-duplicate digests (sign of poor normalization).
# Adjust LEFT() length if the varying part appears earlier in the query.
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT LEFT(digest_text, 60) AS prefix, COUNT(*) AS near_dupes FROM stats_mysql_query_digest GROUP BY prefix HAVING near_dupes > 10 ORDER BY near_dupes DESC LIMIT 20;"
# OS-level RSS of the ProxySQL process
ps -p $(pidof proxysql) -o pid,rss,vsz,etime

How to diagnose it

  1. Confirm the memory consumer. Query stats_memory_metrics and compare query_digest_memory against Auth_memory, SQLite3_memory_bytes, mysql_query_rules_memory, and jemalloc_active. If query_digest_memory is a large fraction of jemalloc_active, the digest table is the dominant consumer.

  2. Check the digest row count. A high row count relative to your expected number of distinct query patterns indicates cardinality inflation. A workload with 50 distinct query types should not have hundreds of thousands of digest entries.

  3. Inspect top digests for normalization gaps. Look at the top-N entries by count_star, then run the LEFT() grouping query to find near-duplicate prefixes. Many entries differing only in embedded numeric values or identifiers means normalization settings need adjustment.

  4. Correlate latency with stats reads. If you see periodic latency spikes, check whether they align with your monitoring scrape interval. A monitoring system querying stats_memory_metrics or stats_mysql_query_digest triggers a full hash table traversal under lock. If disabling the scrape eliminates the spikes, digest table size is the cause.

  5. Verify variable configuration. Check whether mysql-query_digests is enabled and whether normalization variables match your workload. A workload that generates savepoints with random numeric suffixes (common with Django) or queries with embedded timestamps produces massive digest cardinality unless mysql-query_digests_no_digits is enabled.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
query_digest_memory (stats_memory_metrics)Direct measure of digest hash table memoryMonotonic growth over hours or days with no reset
COUNT(*) of stats_mysql_query_digestNumber of unique tracked query patternsFar exceeds expected distinct query count
jemalloc_resident (stats_memory_metrics)Actual process memory footprintGrowing faster than expected from connections or cache
jemalloc_active minus jemalloc_allocatedMemory fragmentation indicatorLarge and growing gap suggests fragmentation
ProxySQL_Uptime (stats_mysql_global)Contextualizes growth durationLong uptime plus high query_digest_memory means overdue reset
ProxySQL process RSS (OS-level)Process memory from kernel perspectiveApproaching system or cgroup limits

Fixes

Reset the digest table now

Three methods, each with different characteristics:

Read from stats_mysql_query_digest_reset. Returns all current digest data and atomically clears the table. Use this when you want to capture the data before clearing:

-- WARNING: this returns data AND clears the table atomically.
-- Capture the output if you need the data; it is gone after the SELECT completes.
SELECT hostgroup, schemaname, username, digest_text, count_star, sum_time
FROM stats_mysql_query_digest_reset ORDER BY sum_time DESC LIMIT 100;

TRUNCATE TABLE stats_mysql_query_digest. The most efficient reset method. From 2.5.2, its large-table purge path runs without holding the digest lock:

-- Destructive: clears all digest entries. No output returned.
TRUNCATE TABLE stats_mysql_query_digest;

PURGE stats_mysql_query_digest TO <unix_timestamp>. A selective cleanup that removes entries whose last_seen precedes the timestamp:

-- Destructive and selective: replace 1700000000 with the desired epoch seconds.
PURGE stats_mysql_query_digest TO 1700000000;

After resetting, query_digest_memory drops in stats_memory_metrics, but jemalloc_resident may not decrease. This is expected jemalloc behavior. Memory is returned to the process heap for reuse, not necessarily released to the OS. The resident figure will decrease when jemalloc next needs to allocate and finds reusable arena space.

Reduce digest cardinality at the source

If your workload generates high-cardinality digests, tune normalization before scheduling resets:

Enable mysql-query_digests_no_digits. Normalizes all numeric sequences to ?, collapsing entries that differ only in numeric identifiers. The single most impactful change for workloads with embedded IDs, savepoint names with random suffixes, or timestamps:

SET mysql-query_digests_no_digits = 'true';
LOAD MYSQL VARIABLES TO RUNTIME;
SAVE MYSQL VARIABLES TO DISK;

This changes what digest entries look like going forward. It does not affect existing entries until the next reset.

Reduce mysql-query_digests_max_query_length. Controls how much of each original query is stored. A shorter value means less per-entry memory but may truncate the distinguishing part of complex queries.

Reduce mysql-query_digests_max_digest_length. Controls the maximum length of the normalized digest text. Smaller values reduce per-entry memory at the cost of digest precision.

Adjust mysql-query_digests_grouping_limit. Controls how many tokens are grouped in the digest normalization. A lower value produces more aggressive normalization, collapsing more query variants into a single digest.

Schedule periodic resets

Given the absence of a memory cap, periodic resets are the primary mitigation. Options:

External cron job. Schedule a read from stats_mysql_query_digest_reset on a fixed interval (hourly, daily, depending on growth rate). Capture the output to external storage if you need historical data:

# Example: hourly digest capture and reset. The _reset table both returns AND clears.
mysql -u admin -padmin -h 127.0.0.1 -P 6032 \
  -e "SELECT NOW() AS collected_at, hostgroup, schemaname, username, digest_text, count_star, sum_time FROM stats_mysql_query_digest_reset;" \
  >> /var/log/proxysql/digest_archive.tsv

Automated flush to disk. Current ProxySQL exposes admin-stats_mysql_query_digest_to_disk, SAVE MYSQL DIGEST TO DISK, and history_mysql_query_digest. If your version supports the stats history module, set admin-stats_mysql_query_digest_to_disk to a non-zero interval. This periodically performs SAVE MYSQL DIGEST TO DISK, which flushes digests to history_mysql_query_digest and resets the in-memory table:

-- Flush digests to disk every hour (3600 seconds)
SET admin-stats_mysql_query_digest_to_disk = 3600;
LOAD ADMIN VARIABLES TO RUNTIME;
SAVE ADMIN VARIABLES TO DISK;

Note: repeated SAVE MYSQL DIGEST TO DISK operations may produce duplicate entries in history_mysql_query_digest for queries already recorded in a previous flush. Deduplicate during downstream processing if you use this for analytics.

Handle monitoring scrape interference

If your monitoring system queries stats_mysql_query_digest or stats_memory_metrics at a regular interval and causes latency spikes:

  1. Reduce the digest table size first (reset plus cardinality tuning). Traversal cost is proportional to hash table size.
  2. Reduce the scrape frequency for these specific tables if per-second resolution is not needed for digest analysis.
  3. Use a top-N query with LIMIT rather than a full table scan if you only need the heaviest queries.

Prevention

  • Set a reset cadence based on observed growth rate. Measure query_digest_memory growth per hour for your workload. Schedule resets before it reaches a size that causes meaningful traversal latency on stats reads.
  • Enable mysql-query_digests_no_digits from the start. Prevents numeric-identifier bloat before it begins, especially for frameworks that generate savepoints or query identifiers with random numeric suffixes.
  • Persist digest data externally. Since stats reset on restart, historical analysis requires external storage. Use the _reset table read as your collection mechanism so you capture and clear in one operation.
  • Monitor query_digest_memory as a trend, not a threshold. Alert on sustained growth rate, not absolute value. The acceptable absolute value depends on your workload’s natural cardinality.
  • Include digest reset in ProxySQL runbooks. After restarts, upgrades, or configuration changes, verify the reset schedule is still active and the growth rate has not changed.

How Netdata helps

  • Netdata’s ProxySQL collector gathers stats_memory_metrics including query_digest_memory per second, making monotonic growth visible as a trend without manual admin queries.
  • Correlating query_digest_memory growth against jemalloc_resident and jemalloc_active distinguishes digest-driven growth from connection buffer growth or memory fragmentation.
  • Per-second collection of query processing time and client connection metrics can reveal periodic spikes caused by stats table traversal, even when spikes are short.
  • Anomaly detection on query_digest_memory surfaces growth rate changes (for example, a new deployment introducing high-cardinality queries) before the table reaches a size that impacts performance.
  • Since stats_mysql_query_digest resets on ProxySQL restart, Netdata’s persistent time-series storage retains historical baselines that are otherwise lost, enabling before-and-after comparisons across incidents.