sflow-rt / prometheus

Prometheus exporter
MIT License
4 stars 1 forks source link

invalid UTF-8 label value #1

Closed dthpulse closed 2 years ago

dthpulse commented 2 years ago

Hi some sflow labels aren't in UTF-8 format, causing Prometheus to report target as down or missing.

sflow_country_bps{src="CZ Czechia",dst="RE Réunion"} 

Can it be fixed by converting labels to UTF-8?

Or is there some other workaround?

Thank you

sflow-rt commented 2 years ago

I changed the default character encoding for text in sFlow-RT to UTF-8, so upgrading to sFlow-RT version 3.0-1638 should resolve the issue. The docker hub images have also been updated, so if you are using Docker, a docker pull should fix the issue. Please confirm that the encoding problem with Prometheus labels has been resolved.

dthpulse commented 2 years ago

Hi, looks to be fixed! Thank you!