mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 00:23:18 +00:00
b6107cc888
* Make rate possible non-counter annotation consistent Previously a PossibleNonCounterInfo annotation would be left in cases where a range-vector selects 1 float data point, even if no more points are selected in order to calculate a rate. This change ensures an output float exists before emitting such an annotation. This fixes an inconsistency where a series with mixed data (ie, a float and a native histogram) would emit an annotation without any points. For example, ``` load 1m series{label="a"} 1 {{schema:1 sum:10 count:5 buckets:[1 2 3]}} eval instant at 1m rate(series[1m1s]) ``` Would have a PossibleNonCounterInfo annotation. Wheras ``` load 1m series{label="a"} {{schema:1 sum:10 count:5 buckets:[1 2 3]}} {{schema:1 sum:15 count:10 buckets:[1 2 3]}} eval instant at 1m rate(series[1m1s]) ``` Would not. --------- Signed-off-by: Joshua Hesketh <josh@nitrotech.org> |
||
---|---|---|
.. | ||
fuzz-data | ||
parser | ||
promqltest | ||
bench_test.go | ||
engine_internal_test.go | ||
engine_test.go | ||
engine.go | ||
functions_internal_test.go | ||
functions_test.go | ||
functions.go | ||
fuzz_test.go | ||
fuzz.go | ||
histogram_stats_iterator_test.go | ||
histogram_stats_iterator.go | ||
promql_test.go | ||
quantile_test.go | ||
quantile.go | ||
query_logger_test.go | ||
query_logger.go | ||
value_test.go | ||
value.go |