Skip to main content
Version: v1.5.x

Monitoring Memcached

Collect and monitor the general performance Metrics of Memcached.

Protocol Use:Memcached

The default YML configuration for the memcache version is in compliance with 1.4.15. 
You need to use the stats command to view the parameters that your memcache can monitor

**1、Obtain usable parameter indicators through commands such as stats、stats setting、stats settings.

# telnet ip port
[root@server ~]# telnet localhost 11211
Trying ::1...
Connected to localhost.
Escape character is '^]'.
stats
STAT pid 15168
STAT uptime 11691
STAT time 1702569246
STAT version 1.4.15
...

There is help_doc: https://www.runoob.com/memcached/memcached-stats.html

Configuration parameter

Parameter nameParameter help description
Monitoring HostMonitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://)
Monitoring nameIdentify the name of this monitoring. The name needs to be unique
PortPort provided by Memcached
Collection intervalInterval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds
Whether to detectWhether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful
Description remarksFor more information about identifying and describing this monitoring, users can note information here

Collection Metrics

Metrics Set:server_info

Metric nameMetric unitMetric help description
pidMemcache server process ID
uptimesThe number of seconds the server has been running
versionMemcache version
curr_connectionsCurrent number of connections
auth_errorsNumber of authentication failures
threadsCurrent number of threads
item_sizebyteThe size of the item
item_countNumber of items
curr_itemsThe total number of data currently stored
total_itemsThe total number of data stored since startup
bytesbyteThe current number of bytes occupied by storage
cmd_getGet command request count
cmd_setSet command request count
cmd_flushFlush command request count
get_missesGet command misses
delete_missesDelete command misses