field eureka_sd_configs not found in type config.plain

257 views
Skip to first unread message

Xin Yang

unread,
Jan 16, 2021, 4:31:22 AM1/16/21
to promethe...@googlegroups.com
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

Julius Volz

unread,
Jan 17, 2021, 4:16:03 AM1/17/21
to Xin Yang, Prometheus Users
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?

--
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 prometheus-use...@googlegroups.com.
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

Xin Yang

unread,
Jan 17, 2021, 8:35:38 PM1/17/21
to Prometheus Users
This is my  configuration file:
IMG20210118093126.png

Julien Pivotto

unread,
Jan 18, 2021, 2:22:21 AM1/18/21
to Xin Yang, Prometheus Users
Are you 100% sure you have an up-to-date version of prometheus and
promtool? This is pretty new feature.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/71fed736-46e9-4b0d-a781-37b64d437f21n%40googlegroups.com.



--
Julien Pivotto
@roidelapluie
Message has been deleted
Message has been deleted

Xin Yang

unread,
Jan 18, 2021, 8:18:31 AM1/18/21
to Prometheus Users
oh... promtool isn't... it works now,but eureka was not found in the prometheus targets. 
WechatIMG84.png

Reply all
Reply to author
Forward
0 new messages