安装:
1、下载redis_exporter
wget https://github.com/oliver006/redis_exporter/releases/download/v1.29.0/redis_exporter-v1.29.0.linux-amd64.tar.gz
2、解压/usr/local目录下,并重命名
# tar -zxvf redis_exporter-v1.29.0.linux-amd64.tar.gz -C /usr/local/
# cd /usr/local/
# mv redis_exporter-v1.29.0.linux-amd64/ redis_exporter
3、后台启动
nohup ./redis_exporter -redis.addr 10.10.10.9:6381 -redis.password 123 &
4、编辑prometheus.yml
修改155机器上/home/prometheus-2.31.0.linux-amd64/prometheus.yml,
添加
- job_name: 'uat-redis'
static_configs:
- targets: ['10.10.10.9:9121']
5、重启prometheus
nohup ./prometheus --config.file=prometheus.yml &
欢迎关注交流
标签:exporter,amd64,redis,prometheus,linux,v1.29 From: https://www.cnblogs.com/alonewaiting/p/17869548.html