Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Cms 2.1.4 Update released for Drupal core (2.1.4)! Release: Drupal 12.0.0-alpha1 First alpha version released for Drupal core (12.0.0-alpha1). Release: PhotoSwipe - Responsive JavaScript Modal Image Gallery 5.0.9 Minor update available for module photoswipe (5.0.9). Release: AI (Artificial Intelligence) 1.4.8 Minor update available for module ai (1.4.8). Release: AI (Artificial Intelligence) 1.3.13 Minor update available for module ai (1.3.13). Release: Moderated Content Bulk Publish 2.0.53 Minor update available for module moderated_content_bulk_publish (2.0.53). Release: Mailchimp 2.2.9 Minor update available for module mailchimp (2.2.9). Release: Mailchimp 3.1.4 Minor update available for module mailchimp (3.1.4). Module Revived: Image field to media 3.0.2 Module image_field_to_media updated after 13 months of inactivity (3.0.2). Security Coverage: Analyze PostHog Module analyze_posthog now has official Drupal security advisory coverage.

Real-time Performance Monitor

1 sites No security coverage Drupal 9–11
View on drupal.org

This module provides real-time monitoring of your Drupal website's performance, tracking database queries, PHP execution, and frontend rendering. It sends instant alerts via email or Slack when performance issues are detected, without requiring heavy external installations.

The Real-time Performance Monitor module acts as an automated, lightweight, real-time diagnostic watchdog for your Drupal website. It monitors backend database queries, custom PHP execution layers, and frontend rendering metrics directly from actual user traffic, triggering instant alerts via Email or Slack when performance thresholds are breached.

Unlike complex application performance monitoring (APM) tools that require heavy daemon installations, this custom module uses Drupal’s internal architecture to catch bottlenecks on the fly without introducing production overhead.

Key Features

  • Slow SQL Query Detector: Tracks every single query executed on a page view. If a specific query takes longer than your configured millisecond limit, it logs the full SQL statement alongside the exact page URL.
  • Duplicate Query ($N+1$) Alerting: Identifies redundant database requests. If the identical query is run more than X times on a single page lifecycle, an alert is triggered containing a clean breakdown of execution counts and the offending SQL string.
  • PHP Backtrace Watchdog ("Bad Function" Locator): Monitors total backend processing engine times. If a custom hook, unoptimized loop, or slow external API bottleneck slows down a request, the module triggers a snapshot backtrace up to 15 levels deep—identifying the exact custom file name, function, and line number causing the delay.
  • Frontend Telemetry Monitor: Utilizes the browser's native PerformanceNavigationTiming API to measure exact page rendering limits, DOM interactive times, and incoming file sizes for compiled CSS/JS assets.
  • Multi-Channel Alerts: Supports comma-delimited notification routing to multiple administrative email addresses and handles standard asynchronous JSON payloads straight into Slack incoming webhooks.

Configuration

Once enabled, administrators can manage global performance tolerances and notification endpoints directly through a centralized dashboard interface located at:
Administer > Configuration > Development > Real-time Performance Monitor Settings (/admin/config/development/real-time-performance-monitor)

You can fully customize:

  1. SQL Execution time thresholds (in milliseconds).
  2. Maximum allowable duplicate queries per request loop.
  3. Maximum PHP engine threshold time before firing an internal stack trace.
  4. Total browser page render timeouts.
  5. Notification preferences (Email and Slack channels).

Requirements

  • Drupal 10 or 11.
  • Core Database and Core Mail systems.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Jun 2026
Latest release
2 months ago
Releases (12 mo)
6 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.6 Stable 9–11 Jun 10, 2026
1.0.4 Stable 9–11 Jun 7, 2026
1.0.3 Stable 10–11 Jun 7, 2026
1.0.2 Stable 10–11 Jun 5, 2026
1.0.0 Stable 10–11 Jun 5, 2026
1.0.x-dev Dev 10–11 Jun 4, 2026