neptune-networks / flow-exporter

Export network flows from Kafka to Prometheus
https://brooks.sh/2019/11/17/network-flow-analysis-with-prometheus/
MIT License
125 stars 20 forks source link

Ensure the AS name is UTF-8 encoded #2

Closed bswinnerton closed 5 years ago

bswinnerton commented 5 years ago

As of Go 1.13, it looks like there is now a strings.ToValidUTF8 function that should be able to strip out invalid UTF8 characters. There are probably better solutions, but this seems Good Enough™ for now.

Fixes #1.