checkfleet

memcached check

memcached — memcached

Reachability, memory against limit_maxbytes, evictions since startup, connections and version.

checkfleet check memcached --config checkfleet.yml

Checks memcached over its text protocol (zero-dep):

  • Reachability — connects and runs STATS; ERROR if it can’t.
  • MemoryWARN when bytes exceeds mem_warn_pct of limit_maxbytes (default 90); otherwise OK with version, memory percentage and connection count. The percentage is also the target’s numeric metric (%).
  • Evictions — a [evictions] finding carrying the counter as a metric. memcached only exposes a total since startup, not a rate, so there is no useful default threshold: the count is published so the history can chart it (a rising line is the real signal), and it only WARNs when you set an explicit evictions_warn. Omitted when the server doesn’t report the stat.

Targets are host[:port] (default port 11211). Tested against an in-test fake memcached.

  memcached:
    mem_warn_pct: 90
    evictions_warn: 0   # 0 = report only, no threshold
    targets: [cache-01, cache-02:11212]

See the full module reference for every check, or configuration for the config keys.