A streamlined environment for monitoring PostgreSQL databases using pgwatch and visualizing the metrics with Grafana.
- Docker
- Docker Compose
- Clone the repository:
git clone https://github.com/darseen/pgwatch.git
cd pgwatch- Start the services using docker compose:
docker compose up-
Grafana:
http://localhost:3000- Default credentials:
admin/admin
- Default credentials:
-
pgwatch Web UI:
http://localhost:8080- Default credentials:
admin/admin
- Default credentials:
-
Open the pgwatch Web UI.
-
Add your target PostgreSQL database instances by providing their connection details.
-
Open Grafana, navigate to the dashboards section, and use the pre-loaded pgwatch dashboards to monitor your database metrics.
Data persistence and configuration are handled via the compose.yaml file. You can modify the mapped volumes or environment variables directly in the file to change default ports, set secure passwords, or adjust resource limits.
This project is licensed under the MIT License.