<p>I have set up Kube Prometheus Stack with Thanos on my Kubernetes cluster, and I'm using the Thanos Receiver instead of the sidecar approach. I have also configured the Thanos Compactor and Minio for offloading data. Here are some key details of my setup:</p>
<ul>
<li>Prometheus retention is set to 2 hours.</li>
<li>Thanos Receiver retention is set to 6 hours.</li>
<li>Using Longhorn PV as the persistence volume for the Thanos Receiver.</li>
<li>Data is successfully offloaded to Minio storage.</li>
</ul>
<p>My issue is that, even though I have configured the retention settings for both Prometheus and the Thanos Receiver, the <strong>Receiver doesn't seem to automatically delete old data from the Longhorn PV</strong> when the retention period is exceeded. As a result, my PV is filling up with old data, and I need a way to ensure that old data is deleted as per the configured retention.</p>
<p><a href="https://i.stack.imgur.com/7VVJI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7VVJI.png" alt="enter image description here" /></a></p>
<p>I'm wondering if there's a specific configuration or step that I might be missing to enable automatic data deletion from the PV when the retention period is exceeded.</p>

dasunNimantha
<p>I think this issue with Thanos itself.</p>
<p>There was an <a href="https://github.com/thanos-io/thanos/issues/4420" rel="nofollow noreferrer">GitHub issue</a> for the same problem but it was closed by the stale bot.</p>
<p>Try to reach out to Thanos team by creating q new issue in their Github repo.</p>
