mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 08:31:11 -08:00
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.
This commit is contained in:
parent
d9394eb359
commit
b2ef4dc52d
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue