Closed app100000 closed 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.
这是我prometheus.yaml 文件内容
file_sd 我prometheus.yaml文件中写的路径是 file_sd_configs,警告信息是file_sd, 当我prometheus.yaml文件中写的路径是 file_sd_configs,我重启或重新加载之后,我prometheus targets 页面的内容就没了。 请问这是为什么呢?
使用 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.
这是我prometheus.yaml 文件内容
file_sd 我prometheus.yaml文件中写的路径是 file_sd_configs,警告信息是file_sd, 当我prometheus.yaml文件中写的路径是 file_sd_configs,我重启或重新加载之后,我prometheus targets 页面的内容就没了。 请问这是为什么呢?