pgwatch on Debian
-----------------

The pgwatch package installs a `pgwatch.service` file that automatically runs
pgwatch at system boot, listening at http://127.0.0.1:8080/. The default
location for both "sources" and "sink" is `postgresql:///pgwatch`. To override
any of these settings, use `sudo systemctl edit pgwatch`.

Database setup:
  sudo -u postgres -i
  createuser pgwatch
  createuser grafana
  createdb --owner=pgwatch pgwatch
  psql -c "alter default privileges for user pgwatch grant usage on schemas to grafana" pgwatch
  psql -c "alter default privileges for user pgwatch grant select on tables to grafana" pgwatch

Go to http://127.0.0.1:8080/ to configure sources, metrics and presets.

Grafana datasource and dashboard templates are located in
/usr/share/pgwatch/grafana/.

The pgwatch documentation is located in /usr/share/doc/pgwatch/site/.

 -- Christoph Berg <myon@debian.org>  Tue, 29 Jul 2025 12:19:11 +0000
