Thanos sidecar / Compact : Data metric holes observed #8929
Unanswered
YassineChargui
asked this question in
Questions & Answers
Replies: 1 comment
|
I would like to solve this issue |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Thanos, Prometheus and Golang version used:
Object Storage Provider: Azure (Blob storage)
What happened:
We have observed some holes in our data metrics, which we suspect might be caused by issues with the sidecar component. Specifically, we have noticed that the sidecar sometimes uploads multiple blocks simultaneously within a 2-hour window. Immediately after this, we observe that some blocks are deleted.
(Highlighting missing data in red)

What you expected to happen:
We expected the sidecar to upload blocks sequentially without deleting them shortly after upload. The data metrics should be consistent without any gaps.
How to reproduce it (as minimally and precisely as possible):
We are using the HA Prometheus (operator) that receives metrics from different Prometheus and OpenTelemetry (Otel) collectors using remote write. The Thanos sidecar is configured to upload blocks from Prometheus. We also use Thanos compact for compacting the blocks.
Below are the flags used for each component:
Prometheus:
Sidecar
Compact
Full logs to relevant components:
Sidecar
Compact
Anything else we need to know:
Environment:
All reactions