First, Monitoring Collection basis:
Similar throughput, number of cached queries, hit rate, etc.
Second, The main monitoring indicator analysis, through the stats command to collect:
Uptime # #memcached run-time length
Curr_connections # # Current number of connections
Total_connections # # total number of connections ever opened
Connection_structures # # number of connections allocated by the server
Cmd_get # # total number of execute get commands
Cmd_set # # total number of execution set commands
Get_hits # #get Hit Count
get_misses # #get Number of Misses
Bytes_read # # Total Bytes Read
Bytes_written # # Total Bytes Written
Bytes # # memory occupied by the server's current storage (bytes)
Limit_maxbytes # # Allocated memory size (bytes)
Evictions # # the number of items deleted to get memory
Third, Zabbix Agent Configuration:
Userparameter=memcached[*], (echo stats; Sleep 1) | telnet192.168.10.204 11211 2>&1 | awk '/stat $/{print $NF} '
***key you can read it directly from the Web.
Four, Redis Monitoring indicators:
Similar throughput, number of cached queries, hit rate, etc.
Five, mainly through the REDIS-CLI info to monitor:
Uptime_in_days # # number of days to start
connected_clients # # number of clients connected
blocked_clients: # # number of clients waiting for the blocking command (Blpop, Brpop, Brpoplpush)
Used_memory_peak_huma : # #reids所用内存的高峰期
used_memory : # #运行起来使用的内存数
Expired_keys : # #过期的key数量
Evicted_keys : # #删除过期的key数量
keyspace_misses : # #没命中的key数量
keyspace_hits : # #命中的key数量
connected_slaves : # #已连接的从服务器数
rejected_connections : # #因为超过最大连接数被拒接的请求数量
Six, zabbix_agent configuration file:
Userparameter=redis_stats[*],/usr/local/bin/redis-cli-h 192.168.10.203-p 6379 info|grep $1|cut-d:-f2
Zatree Plug-in
This article references: http://www.roncoo.com/course/view/fb3050a5b34b42f39ccad83ebebc89c1
This article is from the "11132517" blog, please be sure to keep this source http://11142517.blog.51cto.com/11132517/1862728
Memcached,redis Monitoring Detailed