Skip to main content

Settings - Data Retention

Configure TimescaleDB metric and continuous aggregate retention, report retention, and unreachable Remote Worker cleanup in NetBeez NextGen.

Written by Panickos Neophytou

In NetBeez NextGen (Version 20.0+), Settings → Agents & Tests → Data Retention lets Administrators control how long PostgreSQL and TimescaleDB retain raw monitoring telemetry, continuous-aggregate rollups, generated reports, and inactive Remote Worker agents—while displaying real-time disk utilization for every data category.

In this article:

Overview & Access Requirements

Navigate to Settings → Agents & Tests → Data Retention (/settings/data_retention) to inspect current storage usage and retention windows. Only users with the Administrator role can view or modify Data Retention settings (see NetBeez Settings Overview).

Settings Agents & Tests Data Retention page showing Metric Retention Period table with Data Type, Retention Period dropdowns, and Space Utilized values

The Metric Retention Period card displays three columns across four logical groups:

  • Data Type: The TimescaleDB hypertable, continuous-aggregate tier, report category, or cleanup policy.

  • Retention Period: Configurable window dropdown (Past week [7 days], Past 2 weeks [14 days], Past month [30 days], Past 2 months [60 days], Past 3 months [90 days], Past 6 months [180 days], Past year [365 days], or Past 2 years [730 days]). Options shorter than a required rollup refresh window are automatically omitted for that row.

  • Space Utilized: Live on-disk storage currently consumed by that hypertable, rollup tier, or report table plus attached PDF exports.

Raw Metric, Hop, Event & Log Retention

NetBeez stores high-frequency telemetry in partitioned TimescaleDB hypertables and enforces retention via automated TimescaleDB chunk-drop policies:

Data Type

Default

Minimum Option

What It Stores

Target Test Metrics

Past month (30d)

Past 2 weeks (14d)

Raw probe results for Ping (including derived jitter and MOS), DNS, HTTP, and Traceroute summary metrics.

Traceroute & Path Analysis Results

Past month (30d)

Past week (7d)

Per-hop route and flow records for Traceroute and Path Analysis tests.

Scheduled Test Metrics

Past 2 months (60d)

Past 2 months (60d)

Agent Performance Metrics

Past month (30d)

Past 2 weeks (14d)

Agent host telemetry including CPU, RAM, disk usage, network interface throughput, and heartbeats.

Wi-Fi Metrics

Past month (30d)

Past 2 weeks (14d)

Wi-Fi signal strength, noise, link quality, bitrate, transmit/receive rates, and channel metrics.

Events (Alerts, Incidents & Agent Events)

Past month (30d)

Past week (7d)

Unified Events timeline covering Alert open/close events, Incident open/close events, and agent/Wi-Fi lifecycle events.

Agent Logs

Past month (30d)

Past week (7d)

Agent operational and Wi-Fi Timing logs (such as wpa_supplicant and DHCP events).

Continuous Aggregate Rollup Retention (1-Hour, 1-Day & 1-Week)

To power fast historical charts, Reports, and long-term baselines without keeping multi-month raw probe streams on disk, NetBeez maintains real-time TimescaleDB continuous aggregates across three tiers:

Rollup Tier

Default

Minimum Option

Usage & Refresh Dependency

1-Hour Averages

Past 2 months (60d)

Past month (30d)

Hourly stats, min/max, packet loss, and heartbeat availability for Target, Agent, and Wi-Fi metrics (used automatically for 3–30 day chart windows). Must stay at least 15 days so 1-Day rollups can refresh cleanly.

1-Day Averages

Past 3 months (90d)

Past 3 months (90d)

Daily rollups for Target, Scheduled Test, Agent, and Wi-Fi metrics (used for 30–365 day windows). Must stay at least 63 days so 1-Week rollups can refresh cleanly.

1-Week Averages

Past 6 months (180d)

Past week (7d)

Weekly rollups for Target, Scheduled Test, Agent, and Wi-Fi metrics across multi-quarter and multi-year trends (windows over 365 days).

Report Retention & Unreachable Remote Worker Cleanup

  • Ad-Hoc Reports (Default: Past 6 months [180 days]) — Controls how long manually generated Reports and their exported PDF files are kept before NetBeez's daily 03:00 AM cleanup job purges them.

  • Scheduled Reports (Default: Past 6 months [180 days]) — Controls how long reports generated by Report Schedules (including System Report Schedules) and their attached PDFs are retained. Space Utilized reflects both database rows and stored PDF files.

  • Unreachable Remote Worker Agents Cleanup (Default: Disabled) — Automatically removes offline Remote Workers (Windows and macOS endpoint agents) that have remained disconnected longer than the selected threshold (Past week through Past 2 years), freeing endpoint license seats automatically during the daily 03:30 AM cleanup job. Note: This policy applies strictly to Remote Workers and never deletes hardware, virtual, container, or Linux software Network Agents.

Updating Data Retention Policies

  1. Check your server's overall disk capacity in Settings → Information & Health (Server Health card) and compare against the Space Utilized column in Settings → Agents & Tests → Data Retention.

  2. Select the desired Retention Period dropdown value for each raw metric, rollup tier, report type, or Remote Worker cleanup policy.

  3. Click Apply in the bottom-right corner of the card. NetBeez immediately updates the underlying TimescaleDB retention policies and displays a confirmation toast.

Did this answer your question?