mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-12-23 05:56:31 +00:00
0c2c1d96f9
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> |
||
---|---|---|
.. | ||
address | ||
clock | ||
event | ||
exporter | ||
level | ||
line | ||
listener | ||
mapper | ||
mappercache | ||
metrics | ||
registry | ||
relay | ||
README.md |
The pkg
directory is deprecated.
Please do not add new packages to this directory.
Existing packages will be moved elsewhere eventually.