Database monitoring
Good monitoring tells you what needs attention and what doesn’t. Here’s what’s worth watching, and what SQL Cockpit shows on each engine.
The problem
When each database is checked in its own tool, nobody has the whole picture. Problems get found by the people affected, and “is it healthy?” takes a round of logins to answer.
Recognise the symptoms
- Each engine is checked in a different tool
- Users spot problems before the team does
- Nobody’s sure what normal looks like
- Connection limits or disks fill up without warning
A practical approach
Start with availability
Know that each instance is reachable, and how long connecting takes.
Watch sessions and waiting
Track connected, active and blocked sessions. Queues usually show here first.
Watch capacity
Keep an eye on database size and how close you are to connection limits, so they don’t catch you out.
Learn what’s normal
Compare today’s figures with a normal period. A number on its own says very little.
Database monitoring by technology
SQL Server
Available: Active sessions, CPU, long-running queries and blocking chains, with history and alerts.
Dynamic management views and Extended Events.
PostgreSQL
Read-only figures: Sessions, blocking, transactions, deadlocks and database size in Estate Overview.
pg_stat_activity and pg_stat_database.
MySQL
Read-only figures: Connections against the limit, activity, InnoDB I/O and table sizes in Estate Overview.
SHOW GLOBAL STATUS and Performance Schema.
MariaDB
Read-only figures: Connections against the limit, activity, InnoDB I/O and table sizes in Estate Overview.
SHOW GLOBAL STATUS and information_schema.
Oracle
Read-only figures: Sessions, blocking, activity counters and capacity in Estate Overview. Most need the optional monitoring grants.
V$SESSION and V$SYSSTAT, plus AWR where your licence includes it.
SQLite
File capacity only: File size, reusable free space and collection timing. SQLite is embedded, so there are no sessions to show.
PRAGMA page_count, freelist_count and your application’s own logs.
What success looks like
One place to see how your databases are doing, and a clear idea of what needs attention.
A successful connection isn’t a health score. Outside SQL Server, SQL Cockpit shows current read-only figures, with no history, thresholds or alerts, and no host CPU, memory or disk measurements.