ignore, my fault, the version is not 2.23.0

在2020年12月18日星期五 UTC+8 下午2:40:23<Tallmad Liang> 写道:

> config file  refer to  
> https://github.com/prometheus/prometheus/blob/release-2.23/documentation/examples/prometheus-eureka.yml
>
> 在2020年12月18日星期五 UTC+8 下午2:03:21<Tallmad Liang> 写道:
>
>> 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
>>
>

-- 
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/23916ee8-b54b-470b-a473-b5076008f336n%40googlegroups.com.

Reply via email to