A
A
Anton2020-05-09 18:37:18
PostgreSQL
Anton, 2020-05-09 18:37:18

With what parameters to run pgwatch in docker to monitor remote postgresql?

I install postgresql 12, docker is already installed. running postgresql and pgwatch2 in docker

yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum install -y postgresql12 postgresql12-server postgresql12-contrib
/usr/pgsql-12/bin/postgresql-12-setup initdb
systemctl enable postgresql-12
systemctl start postgresql-12
docker run -d -p 3000:3000 -p 8080:8080 -e NOTESTDB=1 -e PW2_PGHOST=172.26.9.45 --name pw2 cybertec/pgwatch2
tail -fn100 /var/lib/pgsql/12/data/log/postgresql-Sat.log


There are no connection attempts in the logs.
If you refresh the page, then pgwatch2 itself always shows different metrics.
5eb6ce03b80b0145973398.png
5eb6ce1a48043850936800.png
5eb6ce20e1834170344884.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question