Skip to content

Commit

Permalink
Fixed incorrect sample summary reference
Browse files Browse the repository at this point in the history
Reads were being observed to writeSamples instead of readSamples
  • Loading branch information
ha1287 committed Mar 4, 2019
1 parent 723eba0 commit 59d9556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func responseToTimeseries(data *crateReadResponse) []*prompb.TimeSeries {
sort.Strings(names)
resp := make([]*prompb.TimeSeries, 0, len(timeseries))
for _, name := range names {
writeSamples.Observe(float64(len(timeseries[name].Samples)))
readSamples.Observe(float64(len(timeseries[name].Samples)))
resp = append(resp, timeseries[name])
}
return resp
Expand Down

0 comments on commit 59d9556

Please sign in to comment.