ts=2023-06-08T19:05:08.821Z caller=probe.go:41 level=info msg="no auth_module specified, using default"
ts=2023-06-08T19:05:08.822Z caller=server.go:74 level=info msg="Established new database connection" fingerprint=192.168.0.109:5432
ts=2023-06-08T19:05:08.825Z caller=collector.go:194 level=error target=192.168.0.109 msg="collector failed" name=bgwriter duration_seconds=0.002975554 err="pq: SSL is not enabled on the server"
ts=2023-06-08T19:05:08.830Z caller=collector.go:194 level=error target=192.168.0.109 msg="collector failed" name=replication_slot duration_seconds=0.008109047 err="pq: SSL is not enabled on the server"
ts=2023-06-08T19:05:08.832Z caller=collector.go:194 level=error target=192.168.0.109 msg="collector failed" name=database duration_seconds=0.010163484 err="pq: SSL is not enabled on the server"
ts=2023-06-08T19:05:09.825Z caller=postgres_exporter.go:716 level=error err="Error opening connection to database (postgresql://192.168.0.109): pq: SSL is not enabled on the server"
# HELP pg_locks_count Number of locks
# TYPE pg_locks_count gauge
pg_locks_count{datname="postgres",mode="accessexclusivelock",server="192.168.0.109:5432"} 0
pg_locks_count{datname="postgres",mode="accessexclusivelock",server="192.168.0.109:5433"} 0
pg_locks_count{datname="postgres",mode="accesssharelock",server="192.168.0.109:5432"} 1
When i try get metrics from probe - apllication not read parameters
sudo docker run --rm --name=pg -p9187:9187 -e DATA_SOURCE_NAME="postgresql://postgres_exporter:password@192.168.0.109:5432/postgres?sslmode=disable,postgresql://postgres:mysecretpassword@192.168.0.109:5433/postgres?sslmode=disable" quay.io/prometheuscommunity/postgres-exporter
When http://192.168.0.109:9187/probe?target=192.168.0.109 so i get
but http://192.168.0.109:9187/metrics work and return metrics