fluent / fluent-plugin-prometheus

A fluent plugin that collects metrics and exposes for Prometheus.
Apache License 2.0
258 stars 79 forks source link

Invalid byte sequence in utf-8 #116

Closed xidiandb closed 5 years ago

xidiandb commented 5 years ago

when i curl host:port/metrics, show that invalid byte sequence in UTF-8 and the node will down Chinese may appear in the log

ganmacs commented 5 years ago

Right. if label includes invalid utf-8 chars, prometheus-client seems to raise an error at here.

https://github.com/kataring/fluent-plugin-string-scrub may be helpful to solve this issue.

xidiandb commented 5 years ago

it works! Thanks @ganmacs

xidiandb commented 5 years ago

@ganmacs Do you know of any plugins that delete records that contain invalid utf-8 chars