Thanos compact
Since Prometheus block compaction needs to be turned off for Thanos sidecar upload feature to work reliably, this work is delegated to a different component: Thanos compact. It was designed to use the same compaction strategy as the Prometheus storage engine itself, but for blocks in object storage instead. Since compaction cannot be done directly in object storage, this component requires a fair amount of available space (a few hundred GB, depending on the amount stored remotely) in local disks to process the blocks.
Another important function Thanos compact performs is creating downsampled samples. The biggest advantage of downsampling is querying large time ranges reliably, without needing to pull an overwhelming amount ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access