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 upfile_sd_config difficult to setup/debug #2246
Comments
msiebuhr
referenced this issue
Dec 3, 2016
Closed
Sanity when working with relative paths in config #2247
This comment has been minimized.
This comment has been minimized.
|
Mh, the configuration is reference style to accomodate the listing and nesting of different configuration blocks. It looks correct for file SD as far as I can see. We cannot really repeat a full configuration in every SD config definition. |
This comment has been minimized.
This comment has been minimized.
|
Issues around the documentation should be opened against https://github.com/prometheus/docs. |
grobie
closed this
Mar 5, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 23, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
msiebuhr commentedDec 3, 2016
•
edited
What did you do?
Set up
file_sd_config.What did you expect to see?
Being able to add the snipplets from the documentation (https://prometheus.io/docs/operating/configuration/#<file_sd_config>), have it resolve the file and and import service definitions.
What did you see instead? Under which circumstances?
Adding the code from the docs makes Prometheus refuse to start up:
After digging in the test-suite, finding a file that contains all possible configuration, I found the not-at-all-similar incantation:
Makes it actually start up.
Environment
System information:
FreeBSD 10.3-STABLE amd64
(FreeNAS inside a Jail)
Prometheus version:
Prometheus configuration file:
See above
Logs:
INFO[0000] Starting prometheus (version=, branch=, revision=) source=main.go:75
INFO[0000] Build context (go=go1.7.3, user=, date=) source=main.go:76
INFO[0000] Loading configuration file /usr/local/etc/prometheus.yml source=main.go:247
ERRO[0000] Error loading config: couldn't load configuration (-config.file=/usr/local/etc/prometheus.yml): unknown fields in config: files source=main.go:149