The info Command provided by redis can be used to monitor the values keyspace_hits and keyspace_misses, but the hit rate of redis cannot be obtained directly. The hit rate of redis can be monitored through calculated items of zabbix.
Https://www.zabbix.com/documentation/2.2/manual/config/items/itemtypes/calculated
Zabbix supports this function from 1.8.1.
When creating a new item, you need to select type as calculated.
Enter the name of the new key in the key column.
Enter the calculation expression of the new key in the formula column.
func(<key>|
Func is a function supported in the https://www.zabbix.com/documentation/2.2/manual/appendix/triggers/functions documentation
Key is another item that needs to be used. It is best to use double quotation marks "" to expand the key value. If there is a quotation mark in the key value, use \ escape.
Other parameters required for Parameter
Example:
1. zabbix calculates the ratio of the nearest available disk space to the total disk space.
100*last("vfs.fs.size[/,free]",0)/last("vfs.fs.size[/,total]",0)
2. Calculate the zabbix processed in an average of 10 minutes
This article is from the "Linux SA John" blog, please be sure to keep this source http://john88wang.blog.51cto.com/2165294/1557019
Add zabbix computing type project calculated items