1. Redis Monitor

In Data Collection, we introduced the common data sources. As a monitor framework, Open-Falcon can collect the monitor index data of any system as long as they are converted to the standard format of Open-Falcon.

The data collection of Redis can be done through the script redis-monitor or redismon.

1.1. Working Principle

Redis-monitor is a cron that runs the script redis-monitor.py every minute. Its configuration has the address of redis service. Redis-monitor will be connected to redis instance and collect the monitor data, like connected_clients, used_memory and etc. Next it encapsulates them in the format that is suitable for Open-Falcon and post them to the local falcon-agent. Falcon-Agent provides an http port. You can refer to Data Collection for its use.

For example, if we deploy a Redis instance in each of the 1000 machines, then we can deploy a cron in each of the 1000 machine. Therefore, Redis instance and cron matches one-to-one.

Copyright 2015 - 2018 Xiaomi Inc. all right reserved,powered by Gitbook该文件修订时间: 2022-05-30 16:56:30