wget https://github.com/oliver006/redis_exporter/releases/download/v1.3.3/redis_exporter-v1.3.3.linux-amd64.tar.gz
tar zxf redis_exporter-v1.3.3.linux-amd64.tar.gz
cd redis_exporter-v1.3.3.linux-amd64
nohup ./redis_exporter -redis.addr 192.168.1.120:6379 &
netstat -lntp
tcp6 0 0 :::9121 :::* LISTEN 32407/redis_exporte
vim prometheus.yml
- job_name: 'redis'
scrape_interval: 10s
static_configs:
- targets:
- "localhost:9121"
ps -ef|grep prometheus
brain 13898 1 0 11月05 ? 00:43:28 ./prometheus --web.listen-address=:9000 --config.file=prometheus.yml
brain 21521 21304 0 15:11 pts/1 00:00:00 grep --color=auto prometheus
kill -HUP 13898
https://grafana.com/grafana/dashboards/763/revisions