Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Configuration Language Lock 1.0.2 Minor update available for module config_language_lock (1.0.2). Release: Canvas Override 1.0.1 Minor update available for module canvas_override (1.0.1). Release: Media Remote Image 8.x-1.2 Minor update available for module media_entity_remote_image (8.x-1.2). Release: IDNA Convert Service (punycode) 2.0.4 Minor update available for module idna (2.0.4). Release: Bootstrap Cloud 7.1.3 Minor update available for theme bootstrap_cloud (7.1.3). Release: Token Browser 1.0.2 Minor update available for module token_browser (1.0.2). Release: Varbase Project 11.0.8 Minor update available for module varbase_project (11.0.8). Release: Media Remote Image 2.0.0-beta1 First beta version released for module media_entity_remote_image (2.0.0-beta1). Usage Milestone: Term CSV Export Import Module term_csv_export_import crossed 1,000 active installs. Security Coverage: Module Scout Module module_scout now has official Drupal security advisory coverage.

Monitoring Memcache

3 sites Security covered

Part of the Monitoring ecosystem · 5 projects

View on drupal.org

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

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

Release Timeline

Releases

Version Type Core 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