diff --git a/storage/metric/memory.go b/storage/metric/memory.go index 564201467e..a43f53be5c 100644 --- a/storage/metric/memory.go +++ b/storage/metric/memory.go @@ -55,7 +55,7 @@ func (s *stream) add(timestamp time.Time, value clientmodel.SampleValue) { // BUG(all): https://github.com/prometheus/prometheus/pull/265/files#r4336435. s.values = append(s.values, &SamplePair{ - Timestamp: timestamp, + Timestamp: timestamp.Round(time.Second).UTC(), Value: value, }) }