services.prometheus.exporters.postgres.dataSourceName
NixOS option
Accepts PostgreSQL URI form and key=value form arguments.
type: stringDefault
"user=postgres database=postgres host=/run/postgresql sslmode=disable"
Example
declared in: nixos/modules/services/monitoring/prometheus/exporters.nixView source on NixOS/nixpkgs →"postgresql://username:password@localhost:5432/postgres?sslmode=disable"