oliver006 / redis_exporter

Prometheus Exporter for ValKey & Redis Metrics. Supports ValKey and Redis 2.x, 3.x, 4.x, 5.x, 6.x, and 7.x
https://github.com/oliver006/redis_exporter
MIT License
3.12k stars 876 forks source link

使用 json 文件来提供多个目标,./promtool check config prometheus.yml 出现警告 #854

Closed app100000 closed 10 months ago

app100000 commented 10 months ago

使用 json 文件来提供多个目标,./promtool check config prometheus.yml 出现警告

Redis Metrics Exporter v1.55.0

./promtool check config prometheus.yml Checking prometheus.yml WARNING: file "targets-redis110-111.json" for file_sd in scrape job "redis_exporter_targets" does not exist. SUCCESS: prometheus.yml is valid prometheus config file syntax.

image

这是我prometheus.yaml 文件内容 image

file_sd 我prometheus.yaml文件中写的路径是 file_sd_configs,警告信息是file_sd, 当我prometheus.yaml文件中写的路径是 file_sd_configs,我重启或重新加载之后,我prometheus targets 页面的内容就没了。 请问这是为什么呢?