1 post tagged with "compaction"

View All Tags

Prometheus TSDB (Part 6): Compaction and Retention

Ganesh Vernekar

Ganesh Vernekar

Software Engineer @ Grafana Labs, Twitter @_codesome

Introduction

When Prometheus has created a bunch of blocks, we need to regularly perform maintenance on those blocks to make efficient use of the disk and keep the queries performant.

In this blog post, we are going to look at 2 topics, compaction and retention, which happen in the background when Prometheus is running.