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
We are encountering an issue where querying data beyond 8 days is not possible, whereas, in the past, we were able to retrieve data for up to 20 days. Recently, queries for longer time periods (e.g., 20 days) are returning no data.
Problem Description:
Issue: When querying data for periods longer than 8 days, the data is not returned. The logs show that certain store addresses do not have data for the requested time period.
Previously Working Period: We were able to query data for up to 20 days, but now we are unable to retrieve data beyond 8 days.
Expected Behavior:
When querying data beyond 8 days (e.g., 20 days), the data should be returned, as it was previously working without issues.
Data should be available from the Thanos Store for the configured retention periods, specifically --retention.resolution-raw=7d, --retention.resolution-5m=20d and --retention.resolution-1h=60d.
Logs:
Here is a sample log from when querying for a longer period:
Hey @anvar-bidgely! 👋 I'm here to help you with bug fixes, questions, and becoming a contributor.
The issue you're experiencing with querying data beyond 8 days in Thanos Query could be related to the retention settings and the availability of data in the Thanos Store. Here are a few points to consider:
Retention Settings: Your current retention settings are --retention.resolution-raw=7d, --retention.resolution-5m=20d, and --retention.resolution-1h=60d. This means that raw data is only retained for 7 days. If you are querying for data beyond 8 days, the raw data will not be available, and you will need to rely on the downsampled data (5m or 1h resolution) [1].
Data Availability: The logs indicate that certain store addresses do not have data for the requested time period. This could be due to the retention policy deleting raw data after 7 days, and if the data has not been downsampled to 5m or 1h resolution, it will not be available for queries beyond 8 days.
Compactor Role: Ensure that the Thanos Compactor is running correctly and performing downsampling as expected. The compactor is responsible for downsampling data, which allows you to query longer time ranges efficiently [2].
Bucket Inspection: From the bucket inspection details, verify that there are blocks available for the time range you are querying. If blocks for the desired time range are missing, it could indicate an issue with data retention or compaction.
Configuration Check: Double-check your Thanos Store and Compactor configurations to ensure they are set up correctly to handle the retention and downsampling processes.
By reviewing these aspects, you should be able to identify why data beyond 8 days is not being returned and make the necessary adjustments to your Thanos setup.
Description:
We are encountering an issue where querying data beyond 8 days is not possible, whereas, in the past, we were able to retrieve data for up to 20 days. Recently, queries for longer time periods (e.g., 20 days) are returning no data.
Problem Description:
Issue: When querying data for periods longer than 8 days, the data is not returned. The logs show that certain store addresses do not have data for the requested time period.
Previously Working Period: We were able to query data for up to 20 days, but now we are unable to retrieve data beyond 8 days.
Expected Behavior:
When querying data beyond 8 days (e.g., 20 days), the data should be returned, as it was previously working without issues.
Data should be available from the Thanos Store for the configured retention periods, specifically --retention.resolution-raw=7d, --retention.resolution-5m=20d and --retention.resolution-1h=60d.
Logs:
Here is a sample log from when querying for a longer period:
The text was updated successfully, but these errors were encountered: