前言Prometheus Exporter for Redis Metrics. Supports Redis 2.x, 3.x, 4.x, and 5.xPrometheus 监控 Redis更新历史2019年03月23日 - 初稿阅读原文 - https://wsgzao.github.io/post…扩展阅读redis_exporter - https://github.com/oliver006/...Redis export 安装和使用# 下载redis_exporterhttps://github.com/oliver006/redis_exporter/releasescd /tmpwget https://github.com/oliver006/redis_exporter/releases/download/v0.30.0/redis_exporter-v0.30.0.linux-amd64.tar.gz tar xf redis_exporter-v0.30.0.linux-amd64.tar.gz# 后台启动redis_exporternohup ./redis_exporter -redis.addr redis://<IP>:<PORT> &# iptables rule for Prometheus Redis -A INPUT -s xxx -p tcp –dport 9121 -j ACCEPT# 测试URL获取metricscurl http://<IP>:9121/metricsGrafanaMemory Usage 中 redis_config_maxmemory 如果无法获取到数据请自行定义 valuehttps://grafana.com/dashboard…参考文献https://prometheus.io/docs/in…