Have you tried not storing all those metrics
summary
Argues that full-resolution metrics can be replaced by clustered histograms: builds empirical CDFs from Prometheus-style histograms, measures error as the area between ECDFs, clusters similar histograms with a modified DBSCAN distance, and stores only cluster centroids as a centroid foreign key instead of every histogram. Tests on Grafana query logs, webstore and laptop procstat show sublinear error growth and big disk savings (up to ~80% in one set, worst ~50%), storing a week of CPU samples in under 2 MB for a week.
AI-written summary · about
