Memcached,redis Monitoring Detailed

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.