mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-14 17:16:54 +02:00
* textparse: fix NaN canonicalization check in OpenMetrics getFloatValue * textparse: add tests for OpenMetrics summary NaN quantiles getFloatValue was testing p.exemplarVal instead of the parsed float when normalizing NaN to the canonical representation, so metric values that were NaN were not normalized correctly. Extend TestOpenMetricsParse with nansum summary lines and cmpopts.EquateNaNs in requireEntries so NaN float values compare equal after canonicalization. Signed-off-by: Weixie Cui <cuiweixie@gmail.com> Signed-off-by: cui <cuiweixie@gmail.com> Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>