Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Redis-live of redis monitoring tool

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Introduction

A tool for monitoring redis

Install (under linux)

Yum install python-devel

Install setuptools

1) wget http://pypi.python.org/packages/source/s/setuptools/setuptools-2.0.tar.gz

2) tar

3) cd

4) python setup.py build

5) python setup.py install

Install pip

1) tar

2) cd

3) python setup.py install

Pip install tornado

Pip install redis

Pip install python-dateutil

Pip install argparse

Upload the RedisLive file to the server

Go to the src directory and remove the suffix. example of redis-live.conf.example

Modify the redis-live.conf, and set the ip of the redis-server to be monitored and the corresponding port in the RedisServers. If the redis has a password, fill in the password too. If not, do not write it.

DataStoreType decides which type of data store to use, using RedisStatsServer as the target for data storage in the case of redis, and SqliteStatsStore in the case of sqlite.

Note here that the information on the Internet is old and the configuration is wrong. The type in the new version must be specified. If a certain configuration of redis is specified, if sqlite is specified, the SqliteStatsStore will be left blank.

The final redis-live.conf.example configuration is shown in the following figure (the monitored and the monitor are on the same server)

Start

Redis-monitor.py-duration 120 &

Collect data. 120 here represents continuous monitoring for 120s.

. / redis-live.py &

Provide query service for data status

PS: if you are prompted to have insufficient permissions during execution, give them permissions.

After executing the above two commands, the browser visits: the ip address of the http://redis virtual machine: 8888/index.html

The effect is as follows:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report