Getting Started withpgSentinel
Quick setup guide to get pgSentinel running in minutes. Professional pgbalancer monitoring with real-time metrics and analytics.
Setup Steps
Follow these steps to get pgSentinel running
Prerequisites
System requirements and dependencies
System Requirements
- Docker and Docker Compose installed
- PostgreSQL 12+ with pg_stat_statements extension
- 4GB RAM minimum (8GB recommended)
- 2GB disk space for logs and data
PostgreSQL Setup
Installation
Clone repository and configure environment
Clone Repository
Configure Environment
Environment Variables
Start Services
Launch the complete monitoring stack
Start All Services
Verify Services
Check Logs
Access Dashboard
Open the monitoring dashboard and verify setup
Access Points
Configuration
Customize settings and connect to your PostgreSQL
Database Connection
Restart Services
Verify Connection
- Database connection status
- Real-time metrics appearing
- pg_stat_insights data loading
Quick Verification
Verify everything is working correctly
Dashboard Check
- Open http://localhost:3000
- Verify real-time metrics are updating
- Check WebSocket connection (green indicator)
- Navigate to /insights for pg_stat_insights
Grafana Check
- Open http://localhost:3001
- Login with admin/admin
- Check pgSentinel dashboards are loaded
- Verify data is flowing from Prometheus
Troubleshooting
Common issues and solutions
Services not starting
Check Docker is running and ports are available
Database connection failed
Verify DATABASE_URL in .env file and PostgreSQL is accessible
No metrics appearing
Ensure pg_stat_statements is enabled and PostgreSQL is restarted
Grafana login issues
Default credentials are admin/admin, check container logs
Next Steps
Now that pgSentinel is running, explore the advanced features and customization options.