Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Release: Change Requests 2.1.9 Minor update available for module change_requests (2.1.9). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

DB Health

36 sites Security covered Drupal 9–11
View on drupal.org

This module monitors your Drupal database size and table growth, presenting this information with interactive visualizations and automated logging. It helps site administrators identify tables that are growing unexpectedly, enabling proactive maintenance and performance optimization.

DB Health

Monitor your Drupal database size and table growth over time, with interactive visualizations and automated logging.

The db_health module provides site administrators with a clear and actionable overview of their Drupal database. It monitors the total size of the database and each individual table, as well as the number of rows per table. This information is displayed in an easy-to-use interactive graph, helping site maintainers identify tables that are growing unexpectedly and take corrective action before performance issues arise.

Key features

  • ✅ Database size monitoring: View the total database size and the size of each table.
  • ✅ Table row counts: Monitor the number of rows for every table in your database.
  • ✅ Interactive graphs: Analyze your data visually with interactive, filterable graphs.
  • ✅ Automated logging: Periodic cron runs log database and table size information, providing a historical record of growth over time.
  • ✅ Growth tracking: Quickly identify which tables are increasing in size and might need optimization.
  • ✅ Developer & administrator friendly: Useful insights for site optimization, scaling decisions, and troubleshooting.

Use cases

  • Keep track of database growth trends.
  • Detect bloated tables that might indicate bugs, logging issues, or inefficient data storage.
  • Support data-driven maintenance and scaling plans for your Drupal site.
  • Help plan for database optimization or archiving.

How it works

  • A cron job runs periodically to collect database and table size statistics.
  • This data is logged and can be reviewed over time to understand trends.
  • An admin interface shows the current state of the database, with sortable tables and interactive graphs.

Installation & Usage

Use Composer (recommended):
composer require drupal/db_health

Enable the module:
drush en db_health

Run a manual database check:
drush db-health:run

View database health metrics

Navigate to Administration > Reports > Database Health (/admin/reports/db-health).

Review table sizes and row counts.

Explore historical trends with interactive graphs.

Automated monitoring

The module includes a cron task that runs periodically, collecting and logging database statistics. Ensure your site's cron is configured properly to keep your metrics up to date.

Donation Support

This project took significant time to develop. If it has helped you save time in your work or business, feel free to contribute any amount you consider fair to support its continued development

Depends on

Dependencies of the latest stable release

  • system Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
15
Tracked since
Jul 2025
Latest release
1 month ago
Releases (12 mo)
9 ▲ from 6
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.9 Stable 9–11 Jul 4, 2026
1.1.8 Stable 9–11 Dec 30, 2025
1.1.7 Stable 9–11 Sep 24, 2025
1.1.6 Stable 9–11 Sep 24, 2025
1.1.x-dev Dev 9–11 Sep 24, 2025
1.0.x-dev Dev 9–11 Sep 10, 2025
1.1.5 Stable 9–11 Sep 10, 2025
1.1.4 Stable 9–11 Sep 10, 2025
1.1.3 Stable 9–11 Sep 10, 2025
1.1.2 Stable 9–11 Aug 30, 2025
1.1.1 Stable 9–10 Jul 8, 2025
1.1.0 Stable 9–10 Jul 7, 2025
1.0.2 Stable 9–10 Jul 7, 2025
1.0.1 Stable 9–10 Jul 7, 2025
1.0.0 Stable 9–10 Jul 7, 2025