pkg/store: Expose metric about empty stream responses in proxy store#2030
Conversation
pkg/store/proxy.go
Outdated
| defer wg.Done() | ||
| defer close(s.recvCh) | ||
|
|
||
| i := 0 |
There was a problem hiding this comment.
I feel like a more descriptive name like numResponses would be better. I am way too used to seeing i as a placeholder variable in for-loops for the index 😄 Here we do an infinite loop so it probably doesn't fit as well.
d572ae8 to
10e2f6e
Compare
|
There was an attempt to add a similar thing here as well: #1789 |
bwplotka
left a comment
There was a problem hiding this comment.
We have a build error, but otherwise it looks good (:
Good start: observe how often we hit this situation!
Giedrius, not really connected to other issues, it's not about slow stores but rather stores that were asked for data that they don't have.
10e2f6e to
5a8026e
Compare
Signed-off-by: Frederic Branczyk <fbranczyk@gmail.com>
5a8026e to
63c2d53
Compare
Hence the word 'similar' 😄 |
Changes
This adds a metric to track how often we do requests that end up in empty responses. Related to #1611.
Verification
Did queries that stores didn't have data for, and verified that indeed the
/metricsendpoint reflects this.@bwplotka @squat @GiedriusS