Valkey 与 Redis 指标的 Prometheus Exporter。支持 Valkey 9.x、8.x、7.x 以及各种 Redis 版本
Valkey 与 Redis 指标的 Prometheus Exporter。支持 Valkey 9.x、8.x、7.x 以及各种 Redis 版本
用于 Valkey 指标的 Prometheus 导出器(兼容 Redis)。
支持 Valkey 7.x、8.x、9.x(以及 Redis)
____ _ ___ ____ _____
/ ___|| |_ ___ _ __ |_ _/ ___| ____|
\___ \| __/ _ \| '_ \ | | | | _|
___) | || (_) | |_) | | | |___| |___
|____/ \__\___/| .__/ |___\____|_____|
|_|
Stop ICE's Attack On Our Communities!
git clone https://github.com/oliver006/redis_exporter.git
cd redis_exporter
go build .
./redis_exporter --version如需预构建的二进制文件,请查看发布页面。
在 prometheus.yml 配置文件的 scrape_configs 中添加一个块:
scrape_configs:
- job_name: redis_exporter
static_configs:
- targets: ['<<REDIS-EXPORTER-HOSTNAME>>:9121']并相应调整主机名。
为了让下拉列表中的实例显示为可读名称而非IP地址,建议使用实例重新标记。
例如,如果通过 pod 角色抓取指标,可以在相应的抓取配置中添加:
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: instance
regex: (.*redis.*)作为重新标记配置。根据正则表达式的值,只有名称中包含“Redis”的 pod 才会被这样重新标记。
类似的方法也可以应用于其他角色类型,具体取决于抓取目标是如何配置的。
暂无开放 Issues,或尚未同步最近议题。