In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you how to achieve Redis performance monitoring, I hope you will learn something after reading this article, let's discuss it together!
Redis_exporter + prometheus + grafana monitoring Redis service metrics
1.redis_exporter
2.prometheus
3.grafana
In this paper, redis_exporter + prometheus + grafana is used to monitor Redis services. The reason is: low cost, less manual intervention, download the corresponding components directly, just add configuration to communicate with each other, and the visualization indicators are more comprehensive.
The following is on a Linux machine with redis installed
1 、 redis_exporter
Download the program zip file
Wget https://github.com/oliver006/redis_exporter/releases/download/v0.28.0/redis_exporter-v0.28.0.linux-amd64.tar.gz
Decompression
Tar zxf redis_exporter-v0.28.0.linux-amd64.tar.gz
Cd enters the directory
Cd redis_exporter-v1.15.0.linux-amd64
Running the redis_exporter program directly plus & represents running in the background. The / redis_exporter & command accesses the localhost:6379 of this machine by default. You need to specify the redis of other machines to use. / redis_exporter ip:port &
. / redis_exporter &
2 、 prometheus
The first step is to download the file as usual. The unzipped file (v2.7.1) can be modified to the version to be installed. You can click https://github.com/prometheus/prometheus/releases to find the corresponding version number.
Wget https://github.com/prometheus/prometheus/releases/download/v2.7.1/prometheus-2.7.1.linux-amd64.tar.gztar zxf prometheus-2.7.1.linux-amd64.tar.gz
When cd enters the directory, it will find a prometheus.yml configuration file that corresponds to the service name, monitoring address and port of each service.
Vim prometheus.yml
Open the configuration file to add the configuration for redis_exporter communication
-job_name: 'prometheus' static_configs:-targets: [' localhost:9090'] # the default port number for a program to open on this machine is 9090-job_name: 'redis' static_configs:-targets:-"IP:9121" # (IP for installing redis_exporter)
Run ps: check to see if any processes occupy port 9090
. / prometheus &
Http://ip:9090/targets to see if it is successful.
3 、 grafana
Don't say much nonsense.
Wget https://dl.grafana.com/oss/release/grafana-6.0.0-beta1.linux-amd64.tar.gztar zxf grafana-6.0.0-beta1.linux-amd64.tar.gzcd grafana-6.0.0-beta1./grafana-server start
After startup: http://ip:300 default user: admin, password: admin and then find data sources on the left
Configure Url to correspond to your program address
Last step! Download the json template and import it.
Https://grafana.com/api/dashboards/763/revisions/1/download
Upload
Here you can see which service monitors you configure.
Monitoring page
After reading this article, I believe you have a certain understanding of "how to achieve performance monitoring in Redis". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
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.