Closed andig closed 1 year ago
No feedback? This would impact anyone scraping prometheus metrics produced by a recent prometheus library?
influxdb don't support NaN by design. When encoding float value, it uses NaN as a sentinel to mark the end of data block. https://github.com/influxdata/influxdb/blob/master/tsdb/engine/tsm1/float.go
influxdb don't support NaN by design.
...and that exactly is the problem when using Influx to scrape prometheus. It seems though, that prometheus has reverted the change for enabling NaNs.
Steps to reproduce:
NaN
valuesExpected behavior: No errors
Actual behavior: Log file:
At this point, no metric is collected.
It seems this behaviour has recently been introduced with the prometheus golang library in 1.12.1: https://github.com/prometheus/client_golang/issues/981. According to spec (see that issue),
NaN
is a value.A previous issue for
Inf
values was fixed in https://github.com/influxdata/influxdb/issues/10490.Environment info:
InfluxDB 2.0.9 Server: d1233b7 Frontend: 9c89e22
May be related to https://github.com/influxdata/influxdb/issues/4089