Prometheus Startup Error: config file. => unknown fields in scrape_config: static_configs file=mai

1,747 views
Skip to first unread message

vim...@gmail.com

unread,
Jun 27, 2017, 4:32:46 AM6/27/17
to Prometheus Users

Hi

Can someone help me with the below error?

I tried all the examples given on net and I keep getting this error.


Thank You




vimal@vimal-vm:~/Prometheus/server$ prometheus -version

prometheus, version 0.15.1 (branch: master, revision: 64349aa)

  build user:       julius@julius-thinkpad

  build date:       20150727-17:56:51

  go version:       1.4.2

vimal@vimal-vm:~/Prometheus/server$ cat vimal.yml 

global:

  scrape_interval:     5s

  evaluation_interval: 5s

scrape_configs:

- job_name: linux

  static_configs:

  - targets: 

    - 'localhost:9090'

    labels:

      alias: db1

vimal@vimal-vm:~/Prometheus/server$ vi vimal.yml 

vimal@vimal-vm:~/Prometheus/server$ ./prometheus -config.file=./vimal.yml

prometheus, version 0.15.1 (branch: master, revision: 64349aa)

  build user:       julius@julius-thinkpad

  build date:       20150727-17:56:51

  go version:       1.4.2

INFO[0000] Loading configuration file ./vimal.yml        file=main.go line=173

ERRO[0000] Couldn't load configuration (-config.file=./vimal.yml): unknown fields in scrape_config: static_configs  file=main.go line=177

ERRO[0000] Note: The configuration format has changed with version 0.14. Please see the documentation (http://prometheus.io/docs/operating/configuration/) and the provided configuration migration tool (https://github.com/prometheus/migrate).  file=main.go line=178


Brian Brazil

unread,
Jun 27, 2017, 4:40:50 AM6/27/17
to vim...@gmail.com, Prometheus Users
On 27 June 2017 at 09:32, <vim...@gmail.com> wrote:

Hi

Can someone help me with the below error?


You're using a really old version of Prometheus, where that field was named something else. Try a newer version.

Brian
 

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/429b7928-e6c7-4f21-9fec-f36585057a67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages