Drupal is a registered trademark of Dries Buytaert
drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! video_embed_field 3.1.0 Minor update available for module video_embed_field (3.1.0). bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). commerce_paypal 2.1.2 Minor update available for module commerce_paypal (2.1.2). ckeditor5_premium_features 1.8.1 Minor update available for module ckeditor5_premium_features (1.8.1). ckeditor5_plugin_pack 1.5.2 Minor update available for module ckeditor5_plugin_pack (1.5.2). node_revision_delete 2.1.0 Minor update available for module node_revision_delete (2.1.0). scheduler_content_moderation_integration 3.0.5 Minor update available for module scheduler_content_moderation_integration (3.0.... commerce 3.3.5 Minor update available for module commerce (3.3.5). geocoder 8.x-4.34 Minor update available for module geocoder (8.x-4.34). leaflet 10.4.5 Minor update available for module leaflet (10.4.5).

Adds Monitoring sensors that report on each configured Memcache cluster, so cache health can be alerted on alongside the rest of your site's sensors.

Sensors provided

One sensor instance is provisioned per configured cluster, for each of the following metrics:

  • Memcache memory usagebytes / limit_maxbytes as a percentage. Default thresholds: warn at 80, critical at 95.
  • Memcache hit ratioget_hits / (get_hits + get_misses) as a percentage. Default thresholds: warn below 85, critical below 70.
  • Memcache evictions — cumulative evictions counter across the cluster.
  • Memcache connectivity — number of reachable servers. Turns CRITICAL when fewer servers respond than are configured.
  • Memcache uptime — minimum uptime across the cluster, in seconds. A drop indicates at least one server has restarted.

How it works

On install, the module reads $settings['memcache']['servers'], enumerates distinct cluster names, and creates one monitoring_sensor_config entity per (metric × cluster) pair. Each sensor's settings carry the cluster name, which the plugin passes to MemcacheDriverFactory::get() to retrieve stats at runtime. Existing sensor configs are preserved across re-provisioning, so admin edits to thresholds or labels are not clobbered.

The monitoring.settings:disable_sensor_autocreate toggle is honored: when enabled, the install hook creates no sensors, and the status report downgrades the "missing sensors" warning to informational.

A runtime requirements check surfaces two diagnostics on admin/reports/status:

  • Clusters configured in memcache settings but not yet provisioned with sensors.
  • Sensors referencing clusters that no longer exist in memcache settings.

To re-provision sensors after changing $settings['memcache'], either uninstall and re-enable the module, or call:

\Drupal::classResolver(
  \Drupal\monitoring_memcache\MemcacheClusterDiscovery::class
)->ensureSensors();

Requirements

  • Drupal 10.3+ or 11.x
  • Monitoring
  • Memcache — both the main module and the memcache_admin submodule

Related projects

  • Monitoring — the sensor framework this module plugs into.
  • Memcache — provides the backend and the memcache_admin stats surface.

Activity

Total releases
3
First release
Apr 2026
Latest release
19 hours ago
Release cadence
0 days
Stability
0% stable

Release Timeline

Releases

Version Type Release date
1.0.0-alpha2 Pre-release Apr 23, 2026
1.0.0-alpha1 Pre-release Apr 23, 2026
1.x-dev Dev Apr 23, 2026