SSH Tunnel to Postgresql For Hosted Grafana

I am trying to connect to a Postgresl db that I connect to via SSH with a private key. Will that type of setup work with hosted grafana?

Thanks

I’m facing the exact same issue here and thinking the best option is a custom connection via SSH tunnel. I’ll be following this thread closely!

We’ve had to whitelist 50 IP addresses (https://grafana.com/api/hosted-grafana/source-ips.txt) to work around this. I hope that a more elegant solution is on the cards.

Anything new in this space? I’m facing this issue now. The database is only available via an ssh tunnel. All help appreciated please.

if you have installed Grafana on local machine and its running on port 3000
then open the windows command prompt and run the below command
ssh -i path\to\your-key.pem -L 4000:[remote_host]:[remote_port] [user]@[ssh_server]**

you need pem file remote postgress server details.