Hi,
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?
modules.d/postgresql.yml
hosts: ["postgresql://x.x.x.x:port?sslmode=require"]