Linux

Where Does Thanos Store Config and Data?

Thanos points at object storage through a YAML file with per component data dirs for local state.

Last updated

Thanos configures object storage through a YAML file passed to every component. The file names the bucket, endpoint, and credentials for blocks. Local pieces like compactor and store gateway keep data dirs beside their state.

No single default path exists since flags name the file per deploy. Kubernetes installs mount it from Secrets or ConfigMaps. Back up the YAML with bucket contents for restores.

Where Thanos stores this, by platform

Linux
[ConfigDir]/thanos-storage.yaml

Bucket type, endpoint, and credentials live here. Components receive it by flag. Data dirs sit where each component flag points.

Frequently asked questions

Where is Thanos metrics data?

In the object storage bucket named by the YAML file, uploaded by sidecar and compactor. Local caches rebuild from the bucket. Keep bucket versioning on.

How do I back up Thanos?

Copy the storage YAML with bucket contents preserved by versioning. Component data dirs rebuild from the bucket. Keep credentials in secret management.

Notice an outdated path? Let us know.