Note that you can either use the URL format, or a connection string with 
attribute/value pairs like "user=pqgotest dbname=pqgotest 
sslmode=verify-full"

See:
https://pkg.go.dev/github.com/lib/pq
https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING

On Monday, 20 June 2022 at 17:05:35 UTC+1 Brian Candler wrote:

> On Monday, 20 June 2022 at 16:30:46 UTC+1 Vanshika Sahgal wrote:
>
>> thanks and what about when i have the login and password for the 
>> different databases which are at different ports?
>>
>
> In general, a data source name looks like this:
>
> postgresql://postgres:password@localhost:5432/postgres?sslmode=disable
>
> As you can see, it can include username and password.  Have you tried 
> specifying multiple data source names, separated by commas, in the same 
> setting?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/10b9e061-4a5a-468b-887e-9e1877076ef0n%40googlegroups.com.

Reply via email to