field eureka_sd_configs not found in type config.plain

25 views
Skip to first unread message

Tallmad Liang

unread,
Dec 18, 2020, 1:03:21 AM12/18/20
to Prometheus Users
I am using prometheus-2.23.0.darwin-amd64 on my Mac.
My config file:
============================
global:
  scrape_interval: 15s

scrape_configs:
  - job_name: "prometheus"
    static_configs:
    - targets: ["localhost:9090"]

  - job_name: "lion"
    eureka_sd_configs:
      - server: "http://localhost:8761/eureka"
============================

I couldn't start the prometheus and got the error:
level=error ts=2020-12-18T02:31:50.540Z caller=main.go:283 msg="Error loading config (--config.file=/usr/local/etc/prometheus.yml)" err="parsing YAML file /usr/local/etc/prometheus.yml: yaml: unmarshal errors:\n  line 10: field eureka_sd_configs not found in type config.plai

Tallmad Liang

unread,
Dec 18, 2020, 1:40:23 AM12/18/20
to Prometheus Users

Tallmad Liang

unread,
Dec 18, 2020, 1:52:28 AM12/18/20
to Prometheus Users
ignore, my fault, the version is not 2.23.0
Reply all
Reply to author
Forward
0 new messages