doc/tsdb/embedded_tsdb_overview.md
The ProxySQL TSDB is an embedded SQLite-based time-series store implemented in ProxySQL_Statistics.
It records Prometheus metrics and optional backend TCP probe health into statsdb_disk.
tsdb_metrics (raw samples)tsdb_metrics_hour (hourly rollups)tsdb_backend_health (backend probes)runtime_mysql_servers.statsdb_disk.* tables.TSDB settings are standard global variables with the tsdb- prefix. They can be managed via standard SET commands or through the dedicated TSDB command set:
SET tsdb-...LOAD TSDB VARIABLES TO RUNTIMESAVE TSDB VARIABLES TO DISKSHOW TSDB VARIABLESSHOW TSDB STATUSA built-in dashboard is available at /tsdb on the ProxySQL HTTP Server (default port 6080).
It provides a simple visualization of collected metrics.
REST API endpoints are available under /api/tsdb/ for external integrations.
tsdb-enabled (0/1)tsdb-sample_interval (1..3600 seconds)tsdb-retention_days (1..3650)tsdb-monitor_enabled (0/1)tsdb-monitor_interval (1..3600 seconds)tsdb_metrics): tsdb-retention_daystsdb_backend_health): tsdb-retention_daystsdb_metrics_hour): fixed 365 days