The configuration file you posted loads just fine for me (at least in a Prometheus server build from HEAD). Are you sure the indentation etc. is exactly the same as in your email?
On Sat, Jan 16, 2021 at 10:31 AM Xin Yang <[email protected]> wrote: > 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 > > -- > You received this message because you are subscribed to the Google Groups > "Prometheus Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/CALsEje-Y_N1gM%3DtJsqxY6QowU85o5MS%3DuiUq41Tj7ttGCMnwiw%40mail.gmail.com > . > -- Julius Volz PromLabs - promlabs.com -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAObpH5yhtMuZLEjaOe8DvY0j8omWY9VHZE%2BOWr%3DEGTY76VBPvw%40mail.gmail.com.

