Slide 8 of 15

Memcached integration

Memcached integration

The Memcached integration provides cache monitoring for Memcached, covering cache performance, memory, and connections. Memcached does one job, so monitoring stays focused. Hit rate and eviction trends tell you whether the cache is working, and memory and item counts tell you whether it’s running out of room.

What it’s forMonitoring hit rate, evictions, memory, and connection health
Under the hoodGrafana Alloy scrapes the Memcached exporter with a minimal config

Metrics collected

  • Cache performance: Hit rate, miss rate, and eviction trends
  • Memory: Bytes stored versus available memory
  • Connections: Current connections, connection rate, and the max-connection threshold
  • Items: Items stored, items evicted, and storage throughput
  • Resource usage: CPU time and network bytes

What to know

This integration offers:

  • Prebuilt dashboards: Memcached overview
  • Prebuilt alerts: instance down, connection limit, out of memory

Prerequisites:

  • Alloy needs network access to Memcached.

Documentation

View the Memcached integration documentation.

Script

Memcached does one thing, so its monitoring is focused. Is the cache working, and is it running out of room? Hit rate and eviction trends answer the first question, memory and item counts the second.

Connection tracking matters too, since a connection spike can starve the cache. The integration needs only a minimal exporter configuration to get all of this.