Pq: SSL is not enabled on the server in Metricbeat log

I have below issue when connecting to the postgresql database from Metricbeat postgres module.

2020-06-24T05:25:33 INFO module/wrapper.go:252 Error fetching data for metricset postgresql.activity: error in QueryStats: failed to obtain a connection with the database: pq: SSL is not enabled on the server. Any help?

hosts: ["postgresql://x.x.x.x:port?sslmode=require"]

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.