usage: thanos [] [ ...] A block storage based long-term storage for Prometheus. Flags: -h, --[no-]help Show context-sensitive help (also try --help-long and --help-man). --[no-]version Show application version. --log.level=info Log filtering level. --log.format=logfmt Log format to use. Possible options: logfmt or json. --tracing.config-file= Path to YAML file with tracing configuration. See format details: https://thanos.io/tip/thanos/tracing.md/#configuration --tracing.config= Alternative to 'tracing.config-file' flag (mutually exclusive). Content of YAML file with tracing configuration. See format details: https://thanos.io/tip/thanos/tracing.md/#configuration --[no-]enable-auto-gomemlimit Enable go runtime to automatically limit memory consumption. --auto-gomemlimit.ratio=0.9 The ratio of reserved GOMEMLIMIT memory to the detected maximum container or system memory. Commands: help [...] Show help. sidecar [] Sidecar for Prometheus server. store [] Store node giving access to blocks in a bucket provider. Now supported GCS, S3, Azure, Swift, Tencent COS and Aliyun OSS. query [] Query node exposing PromQL enabled Query API with data retrieved from multiple store nodes. rule [] Ruler evaluating Prometheus rules against given Query nodes, exposing Store API and storing old blocks in bucket. compact [] Continuously compacts blocks in an object store bucket. tools bucket verify [] Verify all blocks in the bucket against specified issues. NOTE: Depending on issue this might take time and will need downloading all specified blocks to disk. tools bucket ls [] List all blocks in the bucket. tools bucket inspect [] Inspect all blocks in the bucket in detailed, table-like way. tools bucket web [] Web interface for remote storage bucket. tools bucket replicate [] Replicate data from one object storage to another. NOTE: Currently it works only with Thanos blocks (meta.json has to have Thanos metadata). tools bucket downsample [] Continuously downsamples blocks in an object store bucket. tools bucket cleanup [] Cleans up all blocks marked for deletion. tools bucket mark --id=ID --marker=MARKER [] Mark block for deletion or no-compact in a safe way. NOTE: If the compactor is currently running compacting same block, this operation would be potentially a noop. tools bucket rewrite --id=ID [] Rewrite chosen blocks in the bucket, while deleting or modifying series Resulted block has modified stats in meta.json. Additionally compaction.sources are altered to not confuse readers of meta.json. Instead thanos.rewrite section is added with useful info like old sources and deletion requests. NOTE: It's recommended to turn off compactor while doing this operation. If the compactor is running and touching exactly same block that is being rewritten, the resulted rewritten block might only cause overlap (mitigated by marking overlapping block manually for deletion) and the data you wanted to rewrite could already part of bigger block. Use FILESYSTEM type of bucket to rewrite block on disk (suitable for vanilla Prometheus) After rewrite, it's caller responsibility to delete or mark source block for deletion to avoid overlaps. WARNING: This procedure is *IRREVERSIBLE* after certain time (delete delay), so do backup your blocks first. tools bucket retention [] Retention applies retention policies on the given bucket. Please make sure no compactor is running on the same bucket at the same time. tools bucket upload-blocks [] Upload blocks push blocks from the provided path to the object storage. tools rules-check --rules=RULES Check if the rule files are valid or not. receive [] Accept Prometheus remote write API requests and write to local tsdb. query-frontend [] Query frontend command implements a service deployed in front of queriers to improve query parallelization and caching.