Postgresql :Connection error

Hi,

I am unable to add postgresql datasource to grafana.It is giving metric request error.Please help me.

I gave http://localhost:5432
and also tried with normal ipaddress format.Nothing worked.

Please help me with detailed steps ASAP.

Regards,
Jyothi