Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded from 2.0 to 2.7 #5268

Closed
hariravella opened this Issue Feb 25, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@hariravella
Copy link

hariravella commented Feb 25, 2019

Bug Report

What did you do?
Upgraded from 2.0 to 2.7
What did you expect to see?
yml configuration file should be compatible with 2.7
What did you see instead? Under which circumstances?

./promtool check config prometheus.yml
Checking prometheus.yml
FAILED: parsing YAML file prometheus.yml: yaml: unmarshal errors:
line 48: field collect[] not found in type config.plain

Environment

  • System information:

    Linux 3.10.0-957.1.3.el7.x86_64 x86_64

  • Prometheus version:

    iprometheus, version 2.7.1 (branch: HEAD, revision: 62e591f)
    build user: root@f9f82868fc43
    build date: 20190131-11:16:59
    go version: go1.11.5

  • Alertmanager version:

    alertmanager, version 0.16.1 (branch: HEAD, revision: 571caec278be1f0dbadfdf5effd0bbea16562cfc)
    build user: root@3000aa3a06c5
    build date: 20190131-15:05:40
    go version: go1.11.5

  • Prometheus configuration file:

    • job_name: ravella test
      params:
      collect[]:
      - cpu
      scrape_interval: 15s
      scrape_timeout: 10s
      metrics_path: /metrics
      scheme: http
      static_configs:
      • targets: ['ravella_test:9100']
  • Alertmanager configuration file:

NA

  • Logs:
    NA
@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Feb 26, 2019

The YAML data isn't valid:

    params:
      collect:
      - cpu

I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.