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;ERRORif it can’t. - Memory —
WARNwhenbytesexceedsmem_warn_pctoflimit_maxbytes(default 90); otherwiseOKwith 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 onlyWARNs when you set an explicitevictions_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.