Database diagnostics
Run diagnostic check
Perform comprehensive diagnostic checks on database connections.Database ID to diagnose
List of diagnostic check results
Check status:
pass, warning, or failTime taken for the check in milliseconds
Stream diagnostic events (SSE)
Stream real-time diagnostic events as they occur.Database ID to diagnose
The diagnostic stream uses Server-Sent Events (SSE) to provide real-time updates. Each event contains JSON data with check progress and results.
Diagnostic checks performed
The diagnostic tool performs the following checks:MySQL Connection
MySQL Connection
Tests connectivity to the MySQL source database, verifies credentials, and measures latency.Checks:
- TCP connection to MySQL host and port
- Authentication with provided credentials
- Query execution (
SELECT 1) - Connection latency measurement
DuckDB File
DuckDB File
Verifies DuckDB database file exists, is accessible, and not corrupted.Checks:
- File exists at specified path
- File permissions are correct
- File size is reasonable (not 0 bytes)
- Can open database connection
- Can execute simple query
Table Count Match
Table Count Match
Compares table counts between MySQL and DuckDB to identify missing tables.Checks:
- Count tables in MySQL
- Count tables in DuckDB
- Identify tables in MySQL not in DuckDB
- Identify tables in DuckDB not in MySQL
Schema Validation
Schema Validation
Validates that table schemas match between MySQL and DuckDB.Checks:
- Column names match
- Column types are compatible
- Primary keys are defined
- Column order is consistent
Sync Status
Sync Status
Checks the status of the most recent synchronization.Checks:
- Last sync timestamp
- Sync status (success/error)
- Records processed in last sync
- Watermark positions
Automation Status
Automation Status
Verifies automation services are running correctly.Checks:
- Auto-sync service status
- Backup service status
- Health monitoring service status
- Next scheduled run times
Use cases
Troubleshoot connection issues
Monitor diagnostic stream
Automated health checks
Integration with monitoring
Prometheus metrics
Grafana alerting
Related endpoints
Health checks
Basic connectivity checks
Database management
Manage database configurations
Logs & monitoring
Access logs and metrics
Troubleshooting
Debugging guide