You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ts=2024-05-07T20:13:43.114Z caller=probe.go:41 level=info msg="no auth_module specified, using default"
ts=2024-05-07T20:13:43.114Z caller=server.go:74 level=info msg="Established new database connection" fingerprint=localhost:5432
ts=2024-05-07T20:13:43.118Z caller=probe.go:81 level=error target=localhost:5432 msg="Error opening connection to database" err="error querying postgresql version: pq: SSL is not enabled on the server"
ts=2024-05-07T20:13:44.121Z caller=postgres_exporter.go:682 level=error err="Error opening connection to database (postgresql://localhost:5432): pq: SSL is not enabled on the server"
Define and configure the auth module and continue using the mutlti-target endpoint
Change your prometheus configuration to not use the /probe endpoint (multi-target) and instead use the /metrics endpoint, removing the relabel_configs and just use the connection defined in the environment variable.
What did you do?
I run the command to use the exporter on my local postgres database.
What did you expect to see?
A successful connection when prometheus try to fetch the data using the scrapper configuration.
What did you see instead? Under which circumstances?
I'm getting an pq SSL error.
Environment
Darwin 23.4.0 arm64
postgres_exporter, version 0.15.0 (branch: HEAD, revision: 68c176b)
build user: root@7c5a76bc737a
build date: 20231027-14:38:04
go version: go1.21.3
platform: linux/arm64
tags: unknown
No flags, just the existing command to run the docker image:
docker run
--net=host
-e DATA_SOURCE_NAME='postgresql://postgres:password@localhost:5432/testdb?sslmode=disable'
prometheuscommunity/postgres-exporter:v0.15.0
postgres (PostgreSQL) 13.2 (Debian 13.2-1.pgdg100+1)
Prometheus scrap config:
The text was updated successfully, but these errors were encountered: