-
Notifications
You must be signed in to change notification settings - Fork 233
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
panic in dogstatsd extended aggregation parsing #572
Comments
we got the same error, while using the 0.27.1, fixed by using 0.26.2 |
@matthiasr sorry for the delay! Here you go:
(there is no such |
Thank you! This seems like there is a linebreak in the stats line. That's, uh, tricky because we assume that this is a line-based format. Which client are you using? |
I'm trying to find a reference for this format but the DogStatsD datagram spec only mentions |
The line ``` |h|#consumer:Kafka::SharedConfigurationConsumer,topic:shared_configuration_update,partition:1,consumer_group:tc_rc_us ``` caused a panic because the line parsing _first_ splits by `:` and then failed to find a `|` to split on. Check that we get at least two "line parts" (i.e. splits around `|`) when we expect them, and if not, gracefully reject the line instead of crashing. Fixes #572. Signed-off-by: Matthias Rampke <matthias@prometheus.io>
#558 (review) – breaking this out into an issue by itself.
From @m-barthelemy:
Could you run the exporter with
--log.level=debug
and give us an example of a line that's triggering this? Ideally, add it as a test case and see if that also fails.@GrgDev it seems that we need to check whether the splitting actually resulted in enough parts, do you have capacity to look into that?
The text was updated successfully, but these errors were encountered: