doc/tsdb/embedded_tsdb_architecture.md
ProxySQL_Admin main loop triggers three TSDB schedulers:
tsdb_sampler_loop)tsdb_downsample_metrics)tsdb_monitor_loop)statsdb_disk SQLite tables.GloVars.prometheus_registry->Collect().tsdb_metrics.tsdb_metrics_hour.runtime_mysql_servers and stores in tsdb_backend_health._sum and _count companion metrics._bucket{le=...} plus _sum and _count companion metrics.tsdb_metrics: PK (timestamp, metric_name, labels)tsdb_metrics_hour: PK (bucket, metric_name, labels)tsdb_backend_health: PK (timestamp, hostgroup, hostname, port)TSDB configuration is handled via standard global variables with the tsdb- prefix. Changes are applied and persisted using the following dedicated administrative commands:
LOAD TSDB VARIABLES TO RUNTIMESAVE TSDB VARIABLES TO DISKThese commands function similarly to their MYSQL and PGSQL counterparts, moving configuration between memory and disk storage.