Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from Gatherer #1] pq: SSL is not enabled on the server #122

Closed
prashantnitt07 opened this issue Aug 2, 2022 · 4 comments
Closed

from Gatherer #1] pq: SSL is not enabled on the server #122

prashantnitt07 opened this issue Aug 2, 2022 · 4 comments

Comments

@prashantnitt07
Copy link

getting error from sql_exporter agent

No metrics gathered, [from Gatherer #1] pq: SSL is not enabled on the server

@prashantnitt07 prashantnitt07 added the bug Something isn't working label Aug 2, 2022
@prashantnitt07
Copy link
Author

I0802 17:54:36.378701 2655919 promhttp.go:39] Error gathering metrics: [from Gatherer #1] pq: SSL is not enabled on the server
I0802 17:56:11.561959 2655919 promhttp.go:39] Error gathering metrics: [from Gatherer #1] pq: SSL is not enabled on the server
I0802 17:59:24.927661 2655919 promhttp.go:39] Error gathering metrics: [from Gatherer #1] pq: SSL is not enabled on the server
^C

@burningalchemist
Copy link
Owner

burningalchemist commented Aug 2, 2022

Hi @prashantnitt07, not a bug of sql_exporter. The message comes from the underlying driver and states that the PostgreSQL server you're trying to connect to doesn't have SSL connection enabled.

You can add ?sslmode=disable parameter to your connection string, this should solve the issue. Let me know if you need any help. 👍

Reference link: https://stackoverflow.com/a/51642783

@burningalchemist burningalchemist removed the bug Something isn't working label Aug 2, 2022
@prashantnitt07
Copy link
Author

thanks , working fine after add in DSN

@prashantnitt07
Copy link
Author

postgres://username:password@host:5432/database?sslmode=disable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants