How BD² Health Monitor works, and deployment
Collection runs inside each database, and the application only reads the result. Choose a topic: the architecture, collection on each database, deployment or space used.
How it works
Collection runs inside each database, and the application only reads the result.
- SQL Server
- MySQL
- MariaDB
- PostgreSQL
- DocumentDB
- MongoDB
Databases
SQL Server 2008 to 2025, MySQL, MariaDB, PostgreSQL, Amazon DocumentDB and MongoDB, on your own servers or in the cloud, and Neo4j Community, version 5 and later.
Local collection
On SQL Server, a DBA database and 15 SQL Agent jobs; on MySQL and MariaDB, Event Scheduler events; on PostgreSQL, DocumentDB and MongoDB, cycles called by the application; on Neo4j, reads by the application in read-only sessions.
Web application
On IIS, as a Windows service or on a laptop, with its own read-only login.
Who uses it
Screens, NOC dashboard, alert emails and a daily report (SQL Server and MySQL), for database, infrastructure and BI teams and developers.
No agent installed
Only scripts and the database’s own scheduler (on PostgreSQL, DocumentDB, MongoDB and Neo4j, the application itself).
On top of what you already have
SQL Server Agent or Event Scheduler and a Windows server, with IIS or as a service (no IIS and no .NET), with no collection server.
Data stays on each server
Nothing leaves the network. The application only reads.
A BD² product
Built, deployed and supported by BD² Soluções em Banco de Dados.
Collection on each database
The same architecture on every database, with each one’s own scheduler.
- SQL Server
- MySQL
- MariaDB
- PostgreSQL
- DocumentDB
- MongoDB
| Item | SQL Server 2008 to 2025 | MySQL and MariaDB | PostgreSQL 13 and later | DocumentDB and MongoDB |
|---|---|---|---|---|
| Installation | One script per server, with an administrator login | Instalar_tudo.sql, from any MySQL client, no command line | Instalar_tudo.sql, in pgAdmin or DBeaver, or instalar.sh | Just one script, in MongoDB Compass, creates the two users; nothing installed on the cluster |
| Collection | 15 SQL Agent jobs | 5 Event Scheduler events | 5 cycles called by the application, with no required extension | 7 cycles called by the application, every 15 seconds |
| Support database | DBA | dba and dba_api | dba, with a user that only runs functions | dba, created by the application and cleaned up by the TTL index |
| Where it runs | Own server or in the cloud | Own server, RDS, Aurora, Azure and Cloud SQL | Own server, RDS, Aurora, Azure and Cloud SQL | Amazon DocumentDB; self-hosted MongoDB (replica set or shards) or Atlas |
| Highlights | Clustering, Always On, SSIS, memory and PLE, documentation for recovery | Panel with 19 tabs: replication and Galera, EXPLAIN, VM steal | Panel with 13 tabs: vacuum and wraparound, slots and WAL | Panel with 11 tabs and slow queries; on MongoDB, sharding, WiredTiger and oplog |
In the cloud, a read-only account on AWS, Azure or Google Cloud also lets it read the provider’s CPU, disk, credits and backups; on MongoDB Atlas, the Atlas account.
Neo4j: nothing is installed on Neo4j, just a user for monitoring. The application opens read-only sessions, reads the running transactions every 15 seconds and keeps the history in its own data folder. An optional script, scheduled on the Neo4j machine, sends disk space, dumps and log errors without connecting to Neo4j. Currently, Community Edition, Neo4j 5 and later.
Deployment in three steps
A few minutes per server. The application, only once.
- SQL Server
- MySQL
- MariaDB
- PostgreSQL
- DocumentDB
- MongoDB
Install collection
Run a script on each server, with an administrator login. On SQL Server, it creates the DBA database and the jobs; on MySQL and PostgreSQL, it is Instalar_tudo.sql, no command line; on DocumentDB, MongoDB and Neo4j, only the users.
Deploy the application
On IIS or as a Windows service (no IIS), or on a laptop to start. Ready-made packages with step-by-step instructions.
Register and configure
Register the servers, who receives the email alerts and the time of the daily report (SQL Server and MySQL).
What you need: SQL Server Agent running on each server (on MySQL and MariaDB, the Event Scheduler; on PostgreSQL, DocumentDB, MongoDB and Neo4j, the application always running, because it calls the collection); a Windows server for the application, with IIS or as a service, with no IIS and no .NET installed (or a laptop, to start); network access from the application to each database; an email server for alerts; and, in the cloud, a read-only account.
How much space the monitor uses
The monitor’s support database on each server, with the default retention, by environment size.
- SQL Server
- MySQL
- MariaDB
- PostgreSQL
- DocumentDB
- MongoDB
Size stops growing: daily cleanup deletes whatever is past each collection’s retention.
To plan disk space, reserve twice the 90-day value for your size.
The largest case, a large SQL Server at 90 days. MySQL and PostgreSQL stay below 600 MB.
| Database | Size | 7 days | 30 days | 90 days |
|---|---|---|---|---|
| SQL Server DBA database | Small | 80 MB | 260 MB | 260 MB |
| Medium | 180 MB | 470 MB | 480 MB | |
| Large | 760 MB | 1.3 GB | 1.4 GB | |
| MySQL and MariaDB dba and dba_api databases | Small | 60 MB | 130 MB | 130 MB |
| Medium | 85 MB | 190 MB | 200 MB | |
| Large | 120 MB | 320 MB | 340 MB | |
| PostgreSQL dba database | Small | 45 MB | 80 MB | 85 MB |
| Medium | 105 MB | 180 MB | 215 MB | |
| Large | 280 MB | 450 MB | 590 MB |
DocumentDB and MongoDB: the cluster’s dba database ranges from about 145 MB to 1.4 GB. The TTL index deletes the history, and the dba database space and cleanup panel checks, collection by collection, that the index exists and that the retention is as configured.
Retention periods can be reduced in the monitoring parameters, and the size drops in the same proportion. The technical documentation includes the reference sizes and what is counted separately, such as Query Store and WAL.
See BD² Health Monitor on your servers
BD² Soluções em Banco de Dados installs data collection, deploys the application and trains your team to respond to alerts.
