Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Monitoring Memcache

Security covered Under active development 1 sites

Part of the Monitoring ecosystem · 7 projects

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 usage — bytes / limit_maxbytes as a percentage. Default thresholds: warn at 80, critical at 95.
  • Memcache hit ratio — get_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

Ask your assistant about Monitoring Memcache

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
3
Tracked since
Apr 2026
Latest release
6 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-alpha2 Pre-release 10–11 Apr 23, 2026
1.0.0-alpha1 Pre-release 10–11 Apr 23, 2026
1.x-dev Dev 10–11 Apr 23, 2026