Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add latency histogram for fetching index cache #6749

Merged
merged 3 commits into from Sep 26, 2023

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Sep 25, 2023

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Add a new histogram thanos_store_index_cache_fetch_duration_seconds to record the latency of fetching data from index cache.

This is useful because now there is no metric to do that. We only have cache client specific metrics, like how long it takes to fetch from memcached: thanos_memcached_operation_duration_seconds.

The down side of the existing thanos_memcached_operation_duration_seconds metric is that it is the duration of a single get multi call only. So if there are multiple batches that histogram doesn't reflect the total time used to fetch from cache. Also it cannot differentiate fetching postings, series or expanded postings.

Verification

Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
Copy link
Contributor

@MichaHoffmann MichaHoffmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@yeya24 yeya24 enabled auto-merge (squash) September 26, 2023 06:04
@yeya24 yeya24 merged commit 20d2900 into thanos-io:main Sep 26, 2023
15 of 16 checks passed
@yeya24 yeya24 deleted the index-cache-fetch-duration-metric branch September 26, 2023 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants