doc/tsdb/embedded_tsdb_specs.md
Embedded time-series storage in SQLite for ProxySQL runtime metrics and backend probe health.
tsdb_metricstimestamp, metric_name, labels, value(timestamp, metric_name, labels)labels is JSON text, default '{}'tsdb_metrics_hourbucket, metric_name, labels, avg_value, max_value, min_value, count(bucket, metric_name, labels)tsdb_backend_healthtimestamp, hostgroup, hostname, port, probe_up, connect_ms(timestamp, hostgroup, hostname, port)tsdb-sample_intervalINSERT OR REPLACE ... GROUP BY bucket, metric_name, labelstsdb-retention_daystsdb-retention_daysAll TSDB variables are prefixed with tsdb-.
Managed via SET commands and the dedicated command set:
LOAD TSDB VARIABLES TO RUNTIMESAVE TSDB VARIABLES TO DISKSHOW TSDB VARIABLESProxySQL_Statistics for insert, query, status, sampler/monitor loops.stats_history.tsdb_* tables./api/tsdb/metrics/api/tsdb/query/api/tsdb/status- Web Dashboard at /tsdb.