Prometheus Redis_exporter
Redis 下载redis_exporter wget https://github.com/oliver006/redis_exporter/releases/download/v0.15.0/redis_exporter-v0.15.0.linux- amd64.tar.gz tar -zxvf redis_exporter-v0.15.0.linux-amd64.tar.gz -C /usr/local/redis_exporter 编写启动脚本 cd /usr/local/ redis_exporte ln -s redis_exporter /usr/sbin/redis- exporter mkdir bin cd bin vim redis - exporter.sh # !/bin/bash basedir =$(cd `dirname $0`/ ..; pwd) redis_host = localhost redis_port =6379 redis_password = abc123 RETVAL = 0 PROG = " redis-exporter " EXEC = " /usr/sbin/redis-exporter " LOCKFILE = " /var/lock/subsys/$PROG " OPTIONS = " -redis.addr