TSDB blocks are automatically cleaned up, but it does this on the 2 hour
block management schedule. Blocks also must be fully expired (maxTime)
before they are deleted.

You probably just need to wait for the maxTime on the oldest block to
expire. Look in the meta.json in the TSDB block directories.

On Sun, Sep 13, 2020 at 3:35 AM Johny <[email protected]> wrote:

> I am reducing data retention from 20 days to 10 days in my Prometheus
> nodes (v. 2.17). When I change *storage.tsdb.retention.time *to 10d and
> restart my instances, this does not get delete data older than 10 days. Is
> there a command to force cleanup?
>
> In general, what is best practice to delete older data in Prometheus?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/e883c687-6534-4562-a775-575e81289e4bn%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/e883c687-6534-4562-a775-575e81289e4bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CABbyFmovu0GN9WHsho%3DGGoVpYo1Y3WzG-obzB1ffd_VTDBE2nQ%40mail.gmail.com.

Reply via email to