Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! 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)!

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

Activity

Total releases
3
First release
Apr 2026
Latest release
1 month 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