Skip to content

Dropping label to resolve a high cardinality metric series? #8070

Closed Answered by mwalz0
mwalz0 asked this question in Questions & Answers
Discussion options

You must be logged in to vote

Figured this out. For my setup, Thanos compactor would compact our metrics from sidecar into two week blocks, replicated 3x for each Prometheus replica we run. I believe this is the default block time range, but this is important to know for identifying your bad blocks. I wasn't too familiar with exactly how Compactor deals with block downsampling/retention so I was able to learn that.

  1. Identified the blocks based on the time range I knew the metric was impacted.
  2. I scaled compactor to 0 before I ran the bucket rewrites (not sure if it was necessary to stop compactor, but it would eventually halt due to overlap anyways later in instructions)
  3. Ran
    thanos bucket rewrite --no-dry-run --delete-…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@mwalz0
Comment options

@dosubot
Comment options

@mwalz0
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mwalz0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant