PTEN
Book a demo
Menu
Database monitoring

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.

Applies to:
  • SQL Server
  • MySQL
  • MariaDB
  • PostgreSQL
  • DocumentDB
  • MongoDB
  1. 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.

  2. 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.

  3. Web application

    On IIS, as a Windows service or on a laptop, with its own read-only login.

  4. 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.

Applies to:
  • SQL Server
  • MySQL
  • MariaDB
  • PostgreSQL
  • DocumentDB
  • MongoDB
ItemSQL Server 2008 to 2025MySQL and MariaDBPostgreSQL 13 and laterDocumentDB and MongoDB
InstallationOne script per server, with an administrator loginInstalar_tudo.sql, from any MySQL client, no command lineInstalar_tudo.sql, in pgAdmin or DBeaver, or instalar.shJust one script, in MongoDB Compass, creates the two users; nothing installed on the cluster
Collection15 SQL Agent jobs5 Event Scheduler events5 cycles called by the application, with no required extension7 cycles called by the application, every 15 seconds
Support databaseDBAdba and dba_apidba, with a user that only runs functionsdba, created by the application and cleaned up by the TTL index
Where it runsOwn server or in the cloudOwn server, RDS, Aurora, Azure and Cloud SQLOwn server, RDS, Aurora, Azure and Cloud SQLAmazon DocumentDB; self-hosted MongoDB (replica set or shards) or Atlas
HighlightsClustering, Always On, SSIS, memory and PLE, documentation for recoveryPanel with 19 tabs: replication and Galera, EXPLAIN, VM stealPanel with 13 tabs: vacuum and wraparound, slots and WALPanel 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.

Applies to:
  • SQL Server
  • MySQL
  • MariaDB
  • PostgreSQL
  • DocumentDB
  • MongoDB
  1. 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.

  2. 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.

  3. 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.

Applies to:
  • SQL Server
  • MySQL
  • MariaDB
  • PostgreSQL
  • DocumentDB
  • MongoDB
~30 days

Size stops growing: daily cleanup deletes whatever is past each collection’s retention.

2×

To plan disk space, reserve twice the 90-day value for your size.

1.4 GB

The largest case, a large SQL Server at 90 days. MySQL and PostgreSQL stay below 600 MB.

Space of the monitor’s support database by database, size and retention
DatabaseSize7 days30 days90 days
SQL Server
DBA database
Small80 MB260 MB260 MB
Medium180 MB470 MB480 MB
Large760 MB1.3 GB1.4 GB
MySQL and MariaDB
dba and dba_api databases
Small60 MB130 MB130 MB
Medium85 MB190 MB200 MB
Large120 MB320 MB340 MB
PostgreSQL
dba database
Small45 MB80 MB85 MB
Medium105 MB180 MB215 MB
Large280 MB450 MB590 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.

WhatsApp