Database Monitoring
Monitor database connectivity and health
Monitoring
Database monitors go beyond simple port checks by actually connecting to your database and executing a test query. This ensures the database is not just accepting connections, but is actually responsive and operational.
Supported Databases
MySQL
Port 3306
mysql
PostgreSQL
Port 5432
postgresql
Redis
Port 6379
redis
MongoDB
Port 27017
mongodb
Elasticsearch
Port 9200
elasticsearch
RabbitMQ
Port 5672
rabbitmq
Configuration
Connection String
Database connection string or URL.
# MySQL mysql://user:password@host:3306/database # PostgreSQL postgresql://user:password@host:5432/database # MongoDB mongodb://user:password@host:27017/database # Redis redis://user:password@host:6379
Test Query
Optional query to execute to verify database responsiveness.
-- MySQL / PostgreSQL SELECT 1 -- Redis PING
Timeout
Maximum time to wait for connection and query execution.
Security Best Practices
- • Create a dedicated read-only user for monitoring
- • Limit network access to only the monitoring server
- • Store credentials securely (use environment variables)
- • Use SSL/TLS connections when possible
Best Practices
- Use a dedicated monitoring user with minimal permissions
- Keep test queries lightweight to avoid impacting performance
- Set appropriate check intervals (60-300 seconds for databases)
- Monitor both primary and replica databases separately
