What are your entries in the pg_hba.conf file?
Don't you need to add the ip address?
host db user XX.XXX.XXX.XXX/32 md5
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have deployed postgres exporter to collect metrics from azure postgresql flexible server database. Both aks and postgres is in same vnet still I am getting below error in exporter pod log:
ts=2023-01-31T09:27:26.841Z caller=collector.go:196 level=error msg="collector failed" name=database duration_seconds=0.142003653 err="pq: no pg_hba.conf entry for host "XX.XXX.XXX.XXX", user "user", database "db", SSL off"
What are your entries in the pg_hba.conf file?
Don't you need to add the ip address?
host db user XX.XXX.XXX.XXX/32 md5
Hi, @Nitin Naidu (Consultant) As @Roy Kim (Azure MVP) mentioned you can try checking the config file and disabl SSL since golang does not support SSL in the postgresql driver.
Please let me know if this helps.
Regards
Geetha