Open
Description
I am using Linux CentOS 7. The database I'm trying to connect to has a # in its password.
For example the DATA_SOURCE_NAME will look as follow:
DATA_SOURCE_NAME="postgresql://user:pass#word@IP:Port/database"
I will get the following if I try to connect:
Established new database connection to "user:pass"
Error opening connection to database (postgresql://user:pass#word@IP:Port/database): dial tcp: address tcp/pass: unknown port source="postgres_exporter.go:1319"
In other words everything after the # (# included) is removed from the data source name.