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

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

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.
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
> Start monitoring your lab—free
$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
"Absolutely Incredible"

"We tested every monitoring system under the sun." — Benjamin Gabler, CEO Rocket.Net

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

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
See Netdata in Action

Watch real-time monitoring in action—demos, tutorials, and engineering deep dives.

Product demos and walkthroughs
Real infrastructure, not staged
> Start with the 3-minute tour
Level Up Your Monitoring
Real problems. Real solutions. 112+ guides from basic monitoring to AI observability.
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
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

Compliance
SOC 2 Type 2

Audited security controls

GDPR Ready

Data stays on your infrastructure

Blog

Long-Term Data Storage and Retention in Netdata

Understand multi-tiered database engine for efficient long-term metric storage
by Shyam Sreevalsan · January 21, 2025

Netdata’s database engine (dbengine) provides a sophisticated multi-tiered storage system designed for efficient long-term data retention while maintaining high granularity. This article explores the technical details of how Netdata handles metric storage, the advantages of its distributed architecture, and how to configure it for your specific needs.


Database Engine Architecture

Netdata’s database engine provides a sophisticated, efficient solution for long-term metric storage through:

  • Intelligent multi-tiered storage architecture
  • Efficient compression and caching mechanisms
  • Flexible retention strategies
  • Distributed deployment options

This design enables organizations to maintain detailed historical data while optimizing storage use and maintaining query performance.

Multi-Tier Storage Design

The dbengine implements a tiered storage approach where data is saved in multiple tiers on disk. Each tier retains data at a different resolution through an intelligent downsampling process:

  1. Data Collection & Initial Storage

    • Metrics are collected at their original frequency
    • Initial storage occurs in Tier 0 at the native resolution of 1-second
    • Data is compressed immediately using efficient algorithms
  2. Downsampling Process

    • Tier 1 creates per-minute points from 60 Tier 0 samples
    • Tier 2 creates per-hour points from 60 Tier 1 samples
    • Each tier maintains statistical accuracy through aggregation
  3. Data Flow

Data Flow Diagram

Configuring Additional Tiers

The dbengine supports up to five storage tiers, giving you flexibility to create custom retention policies beyond the default three-tier setup. Each additional tier further downsamples the data from the previous tier, allowing for very long-term storage with minimal disk usage.

For example:

  • Tier 0: per second (original resolution)
  • Tier 1: per minute (60x downsample from Tier 0)
  • Tier 2: per hour (60x downsample from Tier 1)
  • Tier 3: per day (24x downsample from Tier 2)
  • Tier 4: per week (7x downsample from Tier 3)

Additional tiers maintain excellent storage efficiency due to aggressive downsampling and compression. For example, storing 5 years of daily data points in Tier 3 often requires less storage than 1 year of hourly data in Tier 2.

Storage Efficiency Mechanisms

Compression and Data Formats

Each tier implements specific optimizations:

TierRaw FormatCompressionFinal SizeNotes
Tier 04-byte samplesDelta encoding + zstd~0.6 bytesOptimized for rapid writes
Tier 116-byte aggregatesStatistical compression~6 bytesIncludes min/max/avg
Tier 216-byte aggregatesLong-term compression~18 bytesPreserves statistical accuracy

Memory Management

The database engine employs a sophisticated caching system:

  1. Page Cache

    • Keeps frequently accessed metric data in memory
    • Dynamically adjusted based on system resources
    • Configurable through dbengine page cache size
  2. Extent Cache

    • Manages compressed data blocks
    • Optimizes read operations for historical data
    • Configurable via dbengine extent cache size
[db]
    # Cache configuration example
    dbengine page cache size = 32
    dbengine extent cache size = 32

Distributed Architecture and Deployment Options

Netdata’s storage architecture is flexible enough to support both distributed and centralized deployment models, allowing you to choose the approach that best fits your infrastructure needs.

The dbengine provides complete control over data storage:

  1. Data Location

    • All metrics stored within your infrastructure
    • No data stored in Netdata Cloud
    • Complete data sovereignty
  2. Storage Organization

    /var/lib/netdata/
    ├── dbengine/
    │   ├── tier0/
    │   │   └── [metric data files]
    │   ├── tier1/
    │   │   └── [downsampled data]
    │   └── tier2/
    │       └── [long-term archives]
    

Standalone Node Deployment

In its simplest form, each Netdata node operates independently, maintaining its own metric history. This distributed approach offers several advantages: each node has complete control over its storage requirements, can scale its capacity independently, and maintains direct local access to its historical data.

This deployment model works particularly well for distributed infrastructures where each node needs autonomous operation. For instance, if you’re monitoring edge locations or remote sites with unreliable connectivity, standalone storage ensures each node maintains its complete metric history regardless of network conditions.

Each standalone node can be configured with its own retention policies and storage parameters through its local netdata.conf file:

[db]
    mode = dbengine
    storage tiers = 3
    dbengine tier 0 retention time = 14d
    dbengine tier 1 retention time = 3mo
    dbengine tier 2 retention time = 2y

Parent-Child Streaming Architecture

For organizations that prefer centralized historical data storage, Netdata supports a parent-child streaming architecture. In this model, child nodes stream their metrics to one or more parent nodes, which then maintain the long-term storage for the entire infrastructure.

The streaming architecture provides several benefits. Child nodes can be configured to run in RAM mode to minimize their resource usage, while parent nodes use the database engine for persistent storage. A typical parent node configuration might look like this:

[db]
    mode = dbengine
    storage tiers = 3
    # Increase retention for centralized storage
    dbengine tier 0 retention time = 30d
    dbengine tier 1 retention time = 6mo
    dbengine tier 2 retention time = 5y

The choice between these architectures isn’t mutually exclusive - many organizations implement a hybrid approach where some nodes maintain their own history while others stream to parent nodes. This flexibility allows you to adapt Netdata’s storage architecture to your specific monitoring requirements and infrastructure constraints.

Distributed Architecture Options

  1. Standalone Node Storage

    • Each node maintains its own metric history
    • Independent scaling of storage capacity
    • Direct local access to historical data
  2. Parent-Child Deployment

    • Child nodes stream metrics to parents
    • Parents maintain long-term storage
    • Efficient centralization of historical data

    Parent Child Deployment Diagram

Retention Configuration

Retention Strategies

The database engine supports three distinct approaches:

  1. Time-based Retention

    [db]
        dbengine tier 0 retention time = 14d
        dbengine tier 1 retention time = 3mo
        dbengine tier 2 retention time = 2y
    
  2. Space-based Retention

    [db]
        dbengine tier 0 retention size = 1GiB
        dbengine tier 1 retention size = 1GiB
        dbengine tier 2 retention size = 1GiB
    
  3. Combined Retention

    [db]
        # Tier 0 example with both limits
        dbengine tier 0 retention time = 14d
        dbengine tier 0 retention size = 1GiB
    

RAM mode for short term storage

While the database engine is Netdata’s primary storage mechanism, Netdata also provides a RAM-only storage mode for specific use cases. This alternative mode stores all metric data directly in memory without touching the disk, offering a different set of tradeoffs compared to the database engine.

RAM mode is particularly useful in parent-child streaming setups. In these architectures, child nodes can run in RAM mode to minimize resource usage and storage overhead, while streaming their data in real-time to a parent node that maintains the long-term storage using the database engine.

The memory footprint in RAM mode is predictable and efficient. Each metric sample requires exactly 4 bytes of memory, and Netdata uses memory-mapped files (mmap()) for the ring buffers, which can be incremented in steps of 1024 samples (4KiB). When running on Linux, RAM mode can take advantage of the kernel memory deduplication (KSM) to optimize memory usage further.

You can enable RAM mode by modifying your netdata.conf:

[db]
    mode = ram
    # Optional: customize retention in seconds
    retention = 3600

Remember that data stored in RAM mode exists only in memory and will be lost when Netdata restarts. While this might seem like a limitation, it’s actually ideal for child nodes in a streaming setup, as the parent node maintains the persistent storage and historical data.

Operational Considerations

Planning Your Storage Strategy

When implementing Netdata’s long-term storage, careful planning ensures optimal performance and efficient resource utilization. Let’s explore the key considerations for capacity planning and ongoing maintenance.

Estimating Storage Requirements

Storage requirements for Netdata’s database engine depend on several factors. First, consider your metrics volume - how many metrics you collect and their collection frequency. With Netdata’s efficient compression, each metric typically requires about 0.6 bytes per sample in Tier 0, scaling to about 6 bytes in Tier 1 and 18 bytes in Tier 2.

For example, if you’re collecting 1,000 metrics every second, you can estimate your daily storage needs:

Tier 0: 1000 metrics * 86400 seconds * 0.6 bytes ≈ 50MB per day
Tier 1: 1000 metrics * 1440 minutes * 6 bytes ≈ 8MB per day
Tier 2: 1000 metrics * 24 hours * 18 bytes ≈ 0.4MB per day

Remember to account for future growth in both metrics and retention requirements. It’s generally recommended to allocate at least 50% extra capacity for unexpected increases in data collection.

Performance Optimization

Optimizing Netdata’s database performance involves careful configuration of memory resources. The two main components to consider are the page cache and extent cache sizes. The page cache keeps frequently accessed metric data in memory, while the extent cache maintains compressed data blocks.

For optimal performance, monitor your system’s memory usage and adjust these cache sizes accordingly. A good starting point is to allocate 32MB to each cache:

Watch your system’s disk I/O patterns during normal operation. If you notice high disk activity, you might need to increase cache sizes or adjust your retention strategy to better match your available resources.

Ongoing Monitoring

Netdata itself provides detailed metrics about its database engine performance. Regular monitoring of these metrics helps you maintain optimal performance and catch potential issues before they impact your monitoring capabilities.

Frequently Asked Questions

Q: How does the tiering system handle gaps in data collection?
A: The database engine maintains temporal consistency across tiers, properly handling collection interruptions while preserving statistical accuracy in higher tiers.

Q: Can I modify tier retention periods dynamically?
A: Yes, retention settings can be modified at runtime through netdata.conf. Changes take effect for new data while preserving existing historical data within the new limits.

Q: How does parent-child streaming affect storage requirements?
A: Parent nodes need sufficient storage for aggregated data from all child nodes. Child nodes in streaming configurations can use RAM mode to minimize local storage.

Q: What happens if a tier reaches its size limit but hasn’t hit its time limit?
A: The oldest data in that tier will be removed to maintain the size limit, even if it hasn’t reached the time limit.

Q: How does the database engine handle system restarts?
A: The database engine is designed for durability, maintaining data consistency across system restarts. The page cache is rebuilt as needed when Netdata restarts.

Q: Can I access historical data programmatically?
A: Yes, historical data is accessible through Netdata’s API endpoints, allowing programmatic access while respecting the tiering structure.