mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-03-18 08:32:01 +00:00
It's possible that incoming labels will contain invalid UTF-8 characters. This results in a panic. This fix sanitizes the label's string to ensure only valid UTF-8 characters are included, by replacing invalid characters with � (REPLACEMENT CHARACTER) Signed-off-by: Cooper Worobetz <cooper@worobetz.ca> |
||
---|---|---|
.. | ||
tests | ||
datasource.go | ||
main.go | ||
namespace.go | ||
pg_setting_test.go | ||
pg_setting.go | ||
postgres_exporter_integration_test.go | ||
postgres_exporter_test.go | ||
postgres_exporter.go | ||
probe.go | ||
queries.go | ||
server.go | ||
util.go |