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 upAdd support for log.level in config/environment #3384
Comments
This comment has been minimized.
This comment has been minimized.
|
For Prometheus we only offer one way to configure a given option to keep things simple. It is presumed that you have a configuration management system which handles things like this, and multiple configuration sources with potentially conflicting information does not help you. |
brian-brazil
closed this
Oct 31, 2017
brian-brazil
added
component/config
wont-fix
labels
Oct 31, 2017
This comment has been minimized.
This comment has been minimized.
|
No need to change Prometheus. This can be handled via a wrapper script in the default Dockerfile. |
This comment has been minimized.
This comment has been minimized.
|
If you want a wrapper, you can add it within your own configuration management setup. |
This comment has been minimized.
This comment has been minimized.
|
Yes, ofc, but that would benefit few. I filed #3385 instead that leaves out any Prometheus modifications. |
brian-brazil
referenced this issue
Nov 1, 2017
Closed
Add Dockerfile environment variables to control CMD arguments #3385
dsvensson
referenced this issue
Nov 1, 2017
Closed
Change --log.level=info to --log.level=warn in Dockerfile #3386
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. |
dsvensson commentedOct 31, 2017
•
edited
What did you do?
Started prometheus under docker-compose.
What did you expect to see?
Nothing.
What did you see instead? Under which circumstances?
Lots of log INFO's that I want to hide.
Environment
prom/prometheus docker container.
System information:
docker
Prometheus version:
2.0.0-rc2
Logs:
Turns out Prometheus doesn't support setting log.level in the config file, which requires copying the whole ENTRYPOINT/CMD from the prom/prometheus Dockerfile:
...and pasteing into
docker-compose.yml, with--log.level=warnadded:Ideally this would be possible to either override via environment variables, or the config file.
Here is how log.level can be overridden for Grafana in
docker-compose.yml: