-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
store: Expose bucket index operation duration histogram #2725
Conversation
@pracucci Thanks a lot for correcting my sloppy work 🙈 I haven't finished my morning coffee yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kakkoyun. I see a value in exposing these timings, but I'm not sure the way we track them right now is valuable. Please see the comment I left.
68c149a
to
a47d7e6
Compare
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Co-authored-by: Marco Pracucci <marco@pracucci.com> Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
c732bca
to
8a46f33
Compare
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing, just some nits (:
pkg/store/bucket.go
Outdated
Buckets: []float64{0.001, 0.01, 0.1, 0.3, 0.6, 1, 3, 6, 9, 20, 30, 60, 90, 120}, | ||
}) | ||
|
||
m.postingsLookupDuration = promauto.With(reg).NewHistogram(prometheus.HistogramOpts{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have just label? It will much easier to aggregate, plus we already do that for other statistics, WDYT?
I think also bucket can be adjusted for timeout. BTW What lookup means is quite vague by this help 🤔 Maybe we can be explicit more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bwplotka The first version was using a single histogram with labels 8a46f33. Then I decided to change it, just to be consistent with what we already have in here.
BTW What lookup means is quite vague by this help 🤔 Maybe we can be explicit more.
I'm gonna change the name as you suggested and try to clarify the description.
I think also bucket can be adjusted for timeout.
I've put the boundary at the query timeout. Which timeout value is used for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bwplotka friendly ping.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok for now 👍
pkg/store/bucket.go
Outdated
}) | ||
|
||
m.postingsLookupDuration = promauto.With(reg).NewHistogram(prometheus.HistogramOpts{ | ||
Name: "thanos_bucket_store_index_postings_lookup_duration_seconds", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name: "thanos_bucket_store_index_postings_lookup_duration_seconds", | |
Name: "thanos_bucket_store_index_cachable_fetches_duration_seconds", |
I would add cachable
to put highlight that it includes cache (:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kakkoyun for addressing my feedback. Latest changes LGTM :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
LGTM 💪
pkg/store/bucket.go
Outdated
Buckets: []float64{0.001, 0.01, 0.1, 0.3, 0.6, 1, 3, 6, 9, 20, 30, 60, 90, 120}, | ||
}) | ||
|
||
m.postingsLookupDuration = promauto.With(reg).NewHistogram(prometheus.HistogramOpts{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok for now 👍
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
9bacdf3
to
d603da7
Compare
I would like to expose bucket fetch operation durations to fine-tune caching layer for store.
Signed-off-by: Kemal Akkoyun kakkoyun@gmail.com
Changes
Verification
make build