postgres_exporter
postgres_exporter copied to clipboard
Passwords with blanks are not working
Trying to use a password (sentence with multiple blanks)
using wrouesnel/postgres_exporter:v0.8.0
Tried is with envirnoment variable, passwordfile or as datasource name, also with %20 instead of blanks. (changed username and replaced words) This try was with DATA_SOURCE_NAME replaced blanks with %20
malformed dsn \"dbname=changed host=changed.com password=foo\\\\ test\\\\ foo\\\\ test\\\\ foo\\\\ hello port=5431 user=abcd123\"" source="postgres_exporter.go:1474"
Thanks
The following commit shows that blanks in password is not correctly handled: https://github.com/prometheus-community/postgres_exporter/commit/4716e767dca2e2c24372fda5918c18a1494166c2