Unable to connect Grafana cloud to local Postresql database or docker based Postresql DB

I meant local database installed on my personal laptop or as a docker image.

I have followed this link but not of much help.