postgres_exporter/cmd/postgres_exporter
vancwo 2869087f3c
Fix: Handle incoming labels with invalid UTF-8 (#1131)
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>
2025-02-26 14:21:39 +01:00
..
tests Update build 2022-05-25 11:27:42 +02:00
datasource.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
main.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
namespace.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_setting_test.go Bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 (#925) 2023-10-02 16:00:41 +02:00
pg_setting.go Fix to replace dashes with underscore in the metric names (#1103) 2024-12-22 16:14:19 -05:00
postgres_exporter_integration_test.go Release 0.10.1 2022-01-14 17:27:06 +01:00
postgres_exporter_test.go Update build 2023-03-05 22:20:50 +01:00
postgres_exporter.go Fix missing dsn sanitization for logging (#1104) 2025-02-15 16:35:04 +01:00
probe.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
queries.go feat: add wait/backend to pg_stat_activity (#1106) 2025-02-15 09:08:24 -05:00
server.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
util.go Fix: Handle incoming labels with invalid UTF-8 (#1131) 2025-02-26 14:21:39 +01:00