当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
14 Star 24 Fork 12

pippo / redis-exporter
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

redis-exporter

English

中文说明

  1. 获取redis状态信息
  2. 提供prometheus metrics

Docker

  1. 容器内编译
docker build -t redis-exporter:1 .
  1. 本地编译放入容器,此容器不超过20M
docker build -t redis-exporter:1 -f Dockerfile_busybox .
  1. docker运行
docker run -p 19100:19100 -e "REDIS_FILE=/conf/redis.yml" -v /opt/redis:/conf redis-exporter:1

配置文件

  1. 读取yaml文件
  2. 支持环境变量和命令行参数传入redis.yml配置文件,命令行参数推荐宿主机使用,环境变量适用于docker

环境变量

REDIS_FILE  config/redis.yml

命令行参数传入

./redis-exporter --redis.file=config/redis.yml

命令行参数查看

./redis-exporter -h
  1. redis.yml 文件说明 支持列表传入
redis_hosts:
  - host: 127.0.0.1     # redis host
    port: 6379          # redis port
    password: "redis"   # redis password,没有密码传入空string
    description: "test1" # description
  - host: 127.0.0.1
    port: 6380
    password: ""
    description: "test2"

License

GNU General Public License v3.0

空文件

简介

获取redis的运行信息,提供给prometheus做监控 展开 收起
Go
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/pippozq/redis-exporter.git
git@gitee.com:pippozq/redis-exporter.git
pippozq
redis-exporter
redis-exporter
master

搜索帮助