In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you how to use Redis visual monitoring tool Redislive, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
RedisLive is a WEB-based Redis graphical monitoring tool written in Python, and it is also an open source software for real-time monitoring of Redis data. It shows the key situation and instance data in redis in the form of WEB.
The address of RedisLive on github: https://github.com/nkrode/RedisLive
RedisLive official website English document address: http://www.nkrode.com/article/real-time-dashboard-for-redis
The principle of RedisLive is very simple, that is, through the monitoring script, the MONITOR command provided by Redis is used to obtain data from the monitored Redis instance and store it in the monitoring instance of Redis for data analysis.
RedisLive visually displays the data in the Redis instance and analyzes the query mode and peak value. The following figure shows the official effect image:
Next, let's install Redislive together.
One: installation
The compliance of any software can be found in the official documentation. I'll take centos7 + python as an example to talk about its installation steps. Check the version of python first:
1. Install pip
Friends who have studied python should know that pip is a tool for installing and managing python packages. Now we can go to the official website and have a look at https://pypi.python.org/pypi/pip.
After downloading, we decompress it manually, then go to the root directory of pip-8.1.2 and execute: python setup.py install, but you must have root permission to execute it.
Two: tornado,redis.py,python-dateutil dependencies
On the official website of redislive, we found that these three are all dependencies of the redislive project, and we have to install them before we can start our project.
A 、 tornado
We install this dependency according to the mode of the official website, such as: pip install tornado
B 、 redis.py
Then I had to install this stupid crane painstakingly, and I was bored to death. Continue to use pip as the package manager pip install redis
C 、 python-dateutil
This toolkit depends on what the name is. Help tools such as util, regardless of him, continue to use the official pip install python-dateutil.
As you can see from the above, the tool python-dateutil is already in python. If you install it again, you need to update it. Ok, update it.
Ok, installed here, I am happy and excited, and finally now all the dependencies of redislive have been installed.
Three: download the redisLive source code
As you can see from the official website, the source code address is either git or download, so I'll choose wget here.
Then decompress it by hand, and this is the hanging sample.
But there are three very important things in redislive. As shown below:
1. Redis-live.conf
This is the configuration file for redislive. Open it as follows:
From the configuration file, you can probably see four important nodes:
A 、 RedisServers
This is the redis port we want to monitor. As can be seen from [], it can be poured into a batch.
B 、 DataStoreType
We know that redisLive is a website, and since it is a website, it must also have some website data and statistical information, so I give you two options, either redis or sqllite. Here, choose redis.
C 、 RedisStatusServer
This node is configured with the redis server address that you specify if you select datastoretype= "redis".
D 、 SqliteStatusStore
This is also very simple, in the case of datastoretype= "sqlite", select the server address of sqlite.
Finally, the modified conf file is as follows: [for convenience, both the listening server here and the redislive statistics storage server are the same port, and it is strongly recommended not to be one]
2. Redis-monitor.py
This program is used to call redis's monitor command to collect redis commands for statistics, so this program must be executed permanently, unlike 120s on the official website.
Here, I will set-- duration=12000000, hey hey ~ ~
3. Redis-python.py
Finally to the final step, launch our web site. Fuck, it's tiring to open something.
At this point, I should be able to open the 8888 port of the site, the feeling of excitement, hey, hey.
Finally, the site opened. A very beautiful interface is displayed in front of the parent. Be happy.
The above is all the contents of the article "how to use Redislive, a visual monitoring tool for Redis". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.