mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-05 04:16:15 +02: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…
x
Reference in New Issue
Block a user