- options "--extend.query-path=/etc/prometheus/collectors/postgres_queries.yml"
- environment "DATA_SOURCE_NAME" => "user=postgres host=/run/postgresql #{ports.join(',')}",
+ options "--extend.query-path=/etc/prometheus/exporters/postgres_queries.yml"
+ environment "DATA_SOURCE_URI" => "postgres@:#{ports.join(',:')}/postgres?host=/run/postgresql",
+ "PG_EXPORTER_AUTO_DISCOVER_DATABASES" => "true",