-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inserted 'NaN' values are stored as zero in samples_v3 #418
Comments
Thanks for the report @mat3733 we'll look into after this and find a solution |
@mat3733 |
Thanks for your quick reactivity but actually, you have done the exact opposite of what we need. For our needs, 'NaN' values are very important to be kept in our metrics database. In the initial issue, I was complaining that the 'NaN' values were converted to zero values (which can be a real value for a metric). |
Closed by mistake. Please consider previous message. |
Well, NaN values are questionable about how to work further. If a device stops producing anything, you can figure it out with |
Indeed, our specific usage of NaN may be doubtful but still : inserting 0 instead of 'NaN' or ignoring inserts with NaN is kind of a bug. |
@mat3733 |
I've tested version 3.0.29 and it works as intended, 'NaN' appears in the Clickhouse DB. |
Closing the issue then. |
To reproduce:
in your promwrite.sh test script :
go run main.go -u http://localhost:3100/api/v1/prom/remote/write -t name:foobar -d $dd,NaN
The 'NaN' string is properly parsed into Float64 by the promremotecli go client
but still ended up as a zero value in samples_v3.
The text was updated successfully, but these errors were encountered: