# Grafana v10.2.3 with postgres datasource

**URL:** <https://community.grafana.com/t/grafana-v10-2-3-with-postgres-datasource/115755>\
**Category:** PostgreSQL\
**Tags:** plugins\
**Created:** [February 29, 2024, 9:03am UTC](https://community.grafana.com/t/grafana-v10-2-3-with-postgres-datasource/115755 "2024-02-29T09:03:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahareesh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@ahareesh](https://community.grafana.com/u/ahareesh)\
**Post date:** [February 29, 2024, 9:03am UTC](https://community.grafana.com/t/grafana-v10-2-3-with-postgres-datasource/115755/1 "2024-02-29T09:03:56Z")

</div>

- What Grafana version and what operating system are you using?

Grafana v10.2.3. Deployed as an app service using docker

- **What** are you trying to achieve?  
I am trying to create postgres data source. I have given host url, database name, user and password. After clicking Save and Test, getting error “[sqleng.connectionError] failed to connect to server - please inspect Grafana server log for details”. and in the logs, I see this

logger=tsdb.postgres t=2024-02-29T05:06:00.51831736Z level=error msg=“Check health failed” error=“dial tcp :5432: connect: connection timed out”  
2024-02-29T05:06:00.520789906Z: [INFO] logger=tsdb.postgres t=2024-02-29T05:06:00.518877293Z level=error msg=“Query error” err=“dial tcp :5432: connect: connection timed out”

- **How** are you trying to achieve it?

- What happened?

- What did you **expect** to happen?

Database connection is Ok

 ![Capture](https://us1.discourse-cdn.com/grafana/original/3X/1/9/19f30d41c07bbc1586f21ee08deb0193aa52f45d.png)

- Can you copy/paste the configuration(s) that you are having problems with?

- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us **exactly** what they were.

 ![c](https://us1.discourse-cdn.com/grafana/original/3X/f/c/fc08c88e30aec743f0a82444798e45c81e410b87.png)

- Did you follow any online instructions? If so, what is the URL?

Can someone please help me with this ?

Thanks  
hareesh

---

<div class="post-metadata">

**Author:** ![nickc2](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@nickc2](https://community.grafana.com/u/nickc2)\
**Post date:** [March 6, 2024, 3:26pm UTC](https://community.grafana.com/t/grafana-v10-2-3-with-postgres-datasource/115755/2 "2024-03-06T15:26:48Z")

</div>

Hi @ahareesh have you figured out a solution for this problem? I have a very similar issue where I am experiencing the same behavior and error. Please and thank you

---

<div class="post-metadata">

**Author:** ![cjcombsnoc](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@cjcombsnoc](https://community.grafana.com/u/cjcombsnoc)\
**Post date:** [April 27, 2024, 3:45am UTC](https://community.grafana.com/t/grafana-v10-2-3-with-postgres-datasource/115755/3 "2024-04-27T03:45:01Z")

</div>

Is your Grafana in a docker? If so, you need to do this: host.docker.internal:5432
