Correctly identify no-op appends if the value is NaN

This requires an updating of the vendored commen.model package, which
I will do once https://github.com/prometheus/common/pull/40 is merged.
pull/1646/head
beorn7 2016-05-19 18:32:47 +02:00
parent d9394eb359
commit b2ef4dc52d
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ func (s *memorySeriesStorage) Append(sample *model.Sample) error {
// (e.g. Pushgateway or federation).
if sample.Timestamp == series.lastTime &&
series.lastSampleValueSet &&
sample.Value == series.lastSampleValue {
sample.Value.Equal(series.lastSampleValue) {
return nil
}
s.discardedSamplesCount.WithLabelValues(duplicateSample).Inc()