You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PostgreSQL 14.4 on x86_64-pc-linux-gnu, compiled by gcc, a cc67244dc0 p 47d487d188, 64-bit
Logs:
ts=2022-06-27T09:04:58.736Z caller=main.go:123 level=info msg="Listening on address" address=:9187
ts=2022-06-27T09:04:58.737Z caller=tls_config.go:195 level=info msg="TLS is disabled." http2=false
ts=2022-06-27T09:09:00.384Z caller=datasource.go:49 level=error msg="Unable to parse DSN as either URI or connstring" dsn="postgres://admin:PASSWORD_REMOVED@xxxxxxxx:21699/defaultdb?sslmode=require"
The text was updated successfully, but these errors were encountered:
I think the best course of action would be for us to implement a new DSN type to encapsulate most of the DSN logic. It could implement the String() function and that would allow us to remove the need for the loggableDSN() function while maintaining the redacting of sensitive data.
The exporter is not able to use connection strings that starts with
postgres://
. Only connection string starting withpostgresql://
is working.What did you do?
I'm trying to connect the exporter to a managed DB
What did you expect to see?
Successful connection is expected as
psql
is able to connect to the DB with the same connection string:What did you see instead? Under which circumstances?
An error during connection :
The documentation explains that both designator are allowed:
Environment
Running as docker container : prometheuscommunity/postgres-exporter:v0.10.1
No flag used but the following env vars :
The text was updated successfully, but these errors were encountered: