Drupal is a registered trademark of Dries Buytaert
Search API Solr 4.4.0 Minor update available for module search_api_solr (4.4.0). Page Manager 8.x-4.0 Major update available for module page_manager (8.x-4.0). Trash 3.1.0-beta2 New beta version released for module trash (3.1.0-beta2). Commerce AutoSKU 3.0.1 Minor update available for module commerce_autosku (3.0.1). Custom Field 4.0.10 Minor update available for module custom_field (4.0.10). Alternative login ID & display names 2.0.12 Minor update available for module alt_login (2.0.12). EntityReference UUID 3.0.1 Minor update available for module entity_reference_uuid (3.0.1). LocalGov Publications Importer 1.1.1 Minor update available for module localgov_publications_importer (1.1.1). Configuration Override Warn 8.x-1.6 Module config_override_warn updated after 10 months of inactivity (8.x-1.6). Table Alternate Rows Module table_altrow crossed 1,000 active installs.

This module adds sensors to track the health of your Memcache clusters. It monitors memory usage, hit ratio, evictions, server connectivity, and uptime, allowing you to set alerts for potential issues.

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
3 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

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