What did you do?
I upgraded the prometheus to the latest version,and adding below
eureka parameter to the configuration file,but failed to parse it:
scrape_configs:
- job_name: 'eureka'
eureka_sd_configs:
- server: '
http://eureka1.test.com:18761/eureka/'
sudo ./promtool check config conf.yml
Checking conf.yml
FAILED: parsing YAML file conf.yml: yaml: unmarshal errors:
line 178: field eureka_sd_configs not found in type config.plain
Environment
CentOS Linux release 7.4.1708 (Core)
System information:
Linux 3.10.0-693.el7.x86_64 x86_64
Prometheus version:
prometheus, version 2.24.0 (branch: HEAD, revision: 02e9223)
build user: root@d9f90f0b1f76
build date: 20210106-13:48:37
go version: go1.15.6
platform: linux/amd64