RE: Monitor Postgres database status on Docker - Mailing list pgsql-general

From Daulat Ram
Subject RE: Monitor Postgres database status on Docker
Date
Msg-id MN2PR01MB58546C06613E7C0B58938B359B840@MN2PR01MB5854.prod.exchangelabs.com
Whole thread Raw
In response to RE: Monitor Postgres database status on Docker  (Fan Liu <fan.liu@ericsson.com>)
Responses RE: Monitor Postgres database status on Docker
RE: Monitor Postgres database status on Docker
Re: Monitor Postgres database status on Docker
List pgsql-general

Thanks but how we can use it for docker container.

 

Regards,

Daulat

 

From: Fan Liu <fan.liu@ericsson.com>
Sent: Tuesday, September 24, 2019 3:02 PM
To: Daulat Ram <Daulat.Ram@exponential.com>; pgsql-general@lists.postgresql.org
Subject: RE: Monitor Postgres database status on Docker

 

Hi,

 

I am not from PostgreSQL team.

Just let you know that when we run PostgreSQL in Kubernetes, we use below command for liveness check.

 

pg_isready --host localhost -p $PG_PORT -U $PATRONI_SUPERUSER_USERNAME

 

 

BRs,

Fan Liu

 

 

From: Daulat Ram <Daulat.Ram@exponential.com>
Sent: Tuesday, September 24, 2019 5:18 PM
To: pgsql-general@lists.postgresql.org
Subject: Monitor Postgres database status on Docker

 

Hi team,

 

We want to check the postgres database status on docker container just like we monitor Postgres (up  / down) via /etc/init.d/postgresql status

 

But I am not sure how we can do that with docker.

 

Thanks,

Daulat

 

 

 

 

 

 

pgsql-general by date:

Previous
From: Pankaj Jangid
Date:
Subject: Re: How to represent a bi-directional list in db?
Next
From: bhargav kamineni
Date:
Subject: pg_terminate_backend not working