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

Inconsistency in the configuration documentation #4778

Closed
AmandaHassoun opened this Issue Oct 23, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@AmandaHassoun
Copy link

AmandaHassoun commented Oct 23, 2018

Proposal

Use case. Why is this important?

Could save potential users a lot of time!

Bug Report

What did you do?

Added gce_sd_config to the configuration file

What did you expect to see?

No configuration errors!

What did you see instead? Under which circumstances?

Prometheus was not able to load the configuration file because it couldn't recognize gce_sd_config as a scraping job. Turns out, it's actually supposed to be gce_sd_configs but this is not what is documented here: https://prometheus.io/docs/prometheus/latest/configuration/configuration/

  • Logs:
level=error ts=2018-10-23T14:04:02.01456704Z caller=main.go:617 err="error loading config from \"/etc/prometheus/prometheus.yml\": couldn't load configuration (--config.file=\"/etc/prometheus/prometheus.yml\"): parsing YAML file /etc/prometheus/prometheus.yml: yaml: unmarshal errors:\n  line 13: field gce_sd_config not found in type config.plain\n  line 19: field gce_sd_config not found in type config.plain\n  line 25: field gce_sd_config not found in type config.plain\n  line 31: field gce_sd_config not found in type config.plain"
@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Oct 24, 2018

gce_sd_configs is correctly documented in scrape_config.

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.