-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
JSON marshalling of GoCollector metrics in v1.12.1 results in NaN error #981
Comments
In different news, I wasn't aware that anyone tries to JSON-marshal the protobuf DTOs. Not sure if that's a good idea in general… |
I just ran into a similar issue due to the histogram sum being |
Thanks for pointing that out. We've done some steps to avoid using anything but jsonpb on the relevant objects, here, resolving the issue @tsandall reported initially. (We collaborate on OPA, which is where this came up recently.) |
Thanks all. Sounds like this issue can be closed here. Let us know if this is not indeed resolved, we will reopen. 👍🏽 |
This is a real problem, popular monitoring solutions like InfluxDB currently choke on Would it be reasonable to ask to make this behaviour opt-in to allow for gradual upgrade path? Otherwise we'll be stuck on 1.12.0 until downstream is able to copy with |
@bwplotka imho this is not resolved. It breaks current InfluxDB scraper. Could you kindly reopen? |
Ack, in new release (to be done) we reverted new metrics by default, so it should be fixed for you. Still the underlying problem stays so let's keep it open then |
We recently upgraded from v1.12.0 to v1.12.1 and noticed that the GoCollector metrics are generating JSON marshalling errors because of NaN values. The metrics in question are
go_gc_pauses_seconds_total
andgo_sched_latencies_seconds
. This is on Go 1.17 if that helps.Here's a small program that reproduces the issue.
x.go:
go.mod:
The text was updated successfully, but these errors were encountered: