Skip to content

Documentation should explain how docker interacts with the database #92

Open
@lukeshaughnessy

Description

@lukeshaughnessy

Steps to Reproduce:

  1. Verify database user and password:
psql --host 127.0.0.1 --port 5432 --username postgres_exporter postgres
Password for user postgres_exporter: 
psql (9.5.7)
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
Type "help" for help.

postgres=> 
  1. Docker run with:
docker run -e DATA_SOURCE_NAME="postgresql://postgres_exporter:[email protected]:5432/postgres?sslmode=disable" -p 9187:9187 wrouesnel/postgres_exporter
  1. Result:
level=info msg="Error opening connection to database (could not parse DATA_SOURCE_NAME): dial tcp 127.0.0.1:5432: getsockopt: connection refused" source="postgres_exporter.go:959" 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions