首页
✨运维
🎉安装
👀踩坑
🤷‍♂️学习
😊关于
  • 分类
  • 标签
  • 归档
GitHub

Summer

运维界的小白
首页
✨运维
🎉安装
👀踩坑
🤷‍♂️学习
😊关于
  • 分类
  • 标签
  • 归档
GitHub
  • Docker

  • Zabbix

  • Elasticsearch

  • K8s

  • Mysql

  • Redis

  • Nginx

  • Prometheus

    • 普罗米修斯安装
    • node-exporter部署
    • mysqld-exporter部署
    • elasticsearch-exporter部署
    • redis-exporter部署
      • 1.创建目录
      • 2.解压
      • 3.修改名称
      • 4.启动服务
      • 6.验证
      • 7.展示
  • 安装
  • Prometheus
summer
2020-12-01

redis-exporter部署

# 1.创建目录

[root@summer exporter]# mkdir -p /opt/exporter
[root@summer exporter]# cd /opt/exporter
1
2

# 2.解压

[root@summer src]# tar -zxvf redis_exporter-v1.13.1.linux-amd64.tar.gz 
redis_exporter-v1.13.1.linux-amd64/
redis_exporter-v1.13.1.linux-amd64/README.md
redis_exporter-v1.13.1.linux-amd64/redis_exporter
redis_exporter-v1.13.1.linux-amd64/LICENSE
[root@summer src]# mv redis_exporter-v1.13.1.linux-amd64 redis_exporter
1
2
3
4
5
6

# 3.修改名称

[root@summer exporter]# mv /home/smartmining/bushu3.1/src/redis_exporter ./
[root@summer exporter]# ll
total 0
drwxr-xr-x 2 smartmining smartmining 176 Dec  1 14:17 elasticsearch_exporter
drwxr-xr-x 2 root        root         60 Nov  2 22:47 redis_exporter
[root@summer exporter]# 
 
1
2
3
4
5
6
7

# 4.启动服务

[root@summer redis_exporter]# nohup ./redis_exporter -redis.addr 192.168.0.9:6379 &
[2] 19693
1
2
  • 参数说明:
[root@summer redis_exporter]# ./redis_exporter -h
Usage of ./redis_exporter:
  -check-keys string
    	Comma separated list of key-patterns to export value and length/size, searched for with SCAN
  -check-single-keys string
    	Comma separated list of single keys to export value and length/size
  -check-single-streams string
    	Comma separated list of single streams to export info about streams, groups and consumers
  -check-streams string
    	Comma separated list of stream-patterns to export info about streams, groups and consumers, searched for with SCAN
  -config-command string
    	What to use for the CONFIG command (default "CONFIG")
  -connection-timeout string
    	Timeout for connection to Redis instance (default "15s")
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

# 6.验证

访问:http://IP:9121/metrics

# 7.展示

  • 所用模板:763
elasticsearch-exporter部署

← elasticsearch-exporter部署

最近更新
01
redis持久化
12-08
02
redis为什么这么快
12-08
03
redis的优缺点
12-08
更多文章>
Theme by Vdoing | Copyright © 2019-2020 Evan Xu | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式