You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(verified the dnssrv+ is correctly resolved to the sidecar)
When sidecar is started it correctly sets the relative minimum time as it can be then seen from the query UI /stores endpoint
and the queried data are limited to that time.
Unfortunately the minimum time is never updated and as the time passes data can be still queried up to the fixed point in time of <start of the sidecar - 3h> even after days.
What you expected to happen:
I'd expect that the --min-time flag is honoured as per documentation:
Start of time range limit to serve. Thanos sidecar will serve only metrics, which happened later than this value.
to get only the last 3 hours of data anytime
How to reproduce it (as minimally and precisely as possible):
configure sidecar and query as per above
Full logs to relevant components:
No specific log records identified.
Anything else we need to know:
Based on this comment in the code it seems to be like a forgotten TODO?
Bumped into this for the use-case of having multiple sidecars per prometheus pod for performance/sizing reasons (separate sidecar for uploads to object storage and another one for grpc query).
The text was updated successfully, but these errors were encountered:
Hey @milan-holub! I'm here to assist you with bugs, questions, and becoming a contributor 🤖
The issue you're experiencing with the --min-time flag not updating dynamically in the Thanos sidecar when object storage is not configured is due to the fact that the minimum timestamp is never adjusted if shipping is disabled. This behavior is noted in the code as a "TODO" item, indicating that it's a known limitation:
// TODO: minimum timestamp is never adjusted if shipping is disabled.
When object storage is not configured, uploads are disabled, which means the dynamic adjustment of the --min-time flag does not occur. The flag is primarily used in conjunction with object storage to manage data sharding and retrieval, and without object storage, this dynamic behavior is not applicable [1][2].
Great summary from dosubot but I think that there are also use-cases out of the object storage upload area. Limiting query results is one of those. Any ideas? Is there a chance that it will be implemented?
Thanos, Prometheus and Golang version used:
Object Storage Provider:
None
What happened:
Running sidecar with --min-time=-3h flag without object storage configured:
Having query configured against this sidecar:
(verified the dnssrv+ is correctly resolved to the sidecar)
When sidecar is started it correctly sets the relative minimum time as it can be then seen from the query UI /stores endpoint
and the queried data are limited to that time.
Unfortunately the minimum time is never updated and as the time passes data can be still queried up to the fixed point in time of <start of the sidecar - 3h> even after days.
What you expected to happen:
--min-time
flag is honoured as per documentation:How to reproduce it (as minimally and precisely as possible):
configure sidecar and query as per above
Full logs to relevant components:
No specific log records identified.
Anything else we need to know:
Based on this comment in the code it seems to be like a forgotten TODO?
Bumped into this for the use-case of having multiple sidecars per prometheus pod for performance/sizing reasons (separate sidecar for uploads to object storage and another one for grpc query).
The text was updated successfully, but these errors were encountered: