百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

redis_exporter

> 数据库
开源

Valkey 与 Redis 指标的 Prometheus Exporter。支持 Valkey 9.x、8.x、7.x 以及各种 Redis 版本

3.7K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Valkey 与 Redis 指标的 Prometheus Exporter。支持 Valkey 9.x、8.x、7.x 以及各种 Redis 版本

Prometheus Valkey 与 Redis 指标导出器

用于 Valkey 指标的 Prometheus 导出器(兼容 Redis)。
支持 Valkey 7.x、8.x、9.x(以及 Redis)


           ____  _                ___ ____ _____
          / ___|| |_ ___  _ __   |_ _/ ___| ____|
          \___ \| __/ _ \| '_ \   | | |   |  _|
           ___) | || (_) | |_) |  | | |___| |___
          |____/ \__\___/| .__/  |___\____|_____|
                         |_|

           Stop ICE's Attack On Our Communities!

乌克兰仍在遭受俄罗斯侵略,请考虑捐款支持乌克兰红十字会。

构建并运行导出器

本地构建与运行

bash
git clone https://github.com/oliver006/redis_exporter.git
cd redis_exporter
go build .
./redis_exporter --version

预构建二进制文件

如需预构建的二进制文件,请查看发布页面。

基本 Prometheus 配置

在 prometheus.yml 配置文件的 scrape_configs 中添加一个块:

yaml
scrape_configs:
  - job_name: redis_exporter
    static_configs:
    - targets: ['<<REDIS-EXPORTER-HOSTNAME>>:9121']

并相应调整主机名。

Kubernetes SD 配置

为了让下拉列表中的实例显示为可读名称而非IP地址,建议使用实例重新标记。

例如,如果通过 pod 角色抓取指标,可以在相应的抓取配置中添加:

yaml
          - source_labels: [__meta_kubernetes_pod_name]
            action: replace
            target_label: instance
            regex: (.*redis.*)

作为重新标记配置。根据正则表达式的值,只有名称中包含“Redis”的 pod 才会被这样重新标记。

类似的方法也可以应用于其他角色类型,具体取决于抓取目标是如何配置的。

Issues· 11 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Gogometricsprometheusprometheus-exporter

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库