Thanks but how we can use it for docker container.
Regards,
Daulat
From: Fan Liu <fan.liu@xxxxxxxxxxxx>
Sent: Tuesday, September 24, 2019 3:02 PM
To: Daulat Ram <Daulat.Ram@xxxxxxxxxxxxxxx>; pgsql-general@xxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxx>
Sent: Tuesday, September 24, 2019 5:18 PM
To: pgsql-general@xxxxxxxxxxxxxxxxxxxx
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