Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upUpgraded from 2.0 to 2.7 #5268
Comments
This comment has been minimized.
This comment has been minimized.
|
The YAML data isn't valid: params:
collect:
- cpuI'm closing it for now. If you have further questions, please use our user mailing list, which you can also search. |
simonpasquier
closed this
Feb 26, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hariravella commentedFeb 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:
params:
collect[]:
- cpu
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
Alertmanager configuration file:
NA
NA