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 upMove consoles and consoles_libraries dirs out of /etc/prometheus in Docker image #1845
Comments
This comment has been minimized.
This comment has been minimized.
|
Seems OK to me:
|
This comment has been minimized.
This comment has been minimized.
|
If you're mounting a dir with config to /etc/prometheus then this will look like these console dirs don't exist (/etc/prometheus will be bind mounted over the top). I did this on Kubernetes, using a configmap for configuration mounted to /etc/prometheus which bind mounted over the top of the existing /etc/prometheus dir. Solution is to either mount the individual config files to /etc/prometheus/config.yml, etc. or to mount the config dir to a different dir (e.g. /etc/prometheus/config) & update the startup flags to point to the new files (e.g. I think it might be better if the console* dirs were actually added to /usr/share/prometheus/consoles or something like that instead to ease use of this when running on Docker? |
This comment has been minimized.
This comment has been minimized.
|
Hey, You are right. In case when I am using the kubernetes and configMaps for alerts files, configuration the /etc/prometheus path is cleaned by volume attaching mechanism. I will try to move the configuration to the different folder first as you suggested. |
anioool
closed this
Jul 26, 2016
This comment has been minimized.
This comment has been minimized.
|
Going to reopen & change this to consider moving console dirs out of /etc/prometheus in Docker image so we don't get other reports like this. |
jimmidyson
reopened this
Jul 26, 2016
jimmidyson
changed the title
Docker hub image for version 1.0.0 does not contain consoles and consoles_libraries
Move consoles and consoles_libraries dirs out of /etc/prometheus in Docker image
Jul 26, 2016
This comment has been minimized.
This comment has been minimized.
|
@sdurrheimer @juliusv What do you think? |
This comment has been minimized.
This comment has been minimized.
|
I think it is too late for this kind of change. Changing it now will bother people already used to this path, which would lead to another kind of report "why my consoles are now working ?" or "why changing this now ?". I like the fact that all those conf files are below a single folder We have enough config flags to change this behavior if users really want to. If they need to only share a config file with a volume, they can either use a totally different path or directly share the config file as a volume target path. |
This comment has been minimized.
This comment has been minimized.
Yeah thought it might be, it's just really annoying when you want to mount config files dir in Docker container and have console templates working. It means most users (especially on Kubernetes if they follow @fabxc's guide using configmap) will have to change the defaiult flags in the Docker image. Thinking about it, if users are using the default flags from the image, then moving the console files to different dir & updating flags in the next version of the image should be transparent.
But these aren't really conf files are they? Not what I would consider conf files anyway.
Unless you have multiple rules files as I would expect most "real" users to have. Anyway, understand if this can't be changed for fear of breaking existing users so will leave it with you. |
This comment has been minimized.
This comment has been minimized.
|
I think our 1.0 guarantees about deployment stability prohibits these changes right now. We can and should reconsider if we ever talk about 2.0. Creating a 2.x milestone to collect all similar issues. |
fabxc
added this to the
2.x milestone
Jul 26, 2016
This comment has been minimized.
This comment has been minimized.
|
I think our 1.0 guarantees permit this. We say the example consoles are not covered, and nor are flags. There's no mention of our Docker container, so I'd say it's not included. |
This comment has been minimized.
This comment has been minimized.
|
I don't want to analyze what we wrote there like a legal contract, looking for loop holes. From a user perspective, my intuitive understanding would be that this is covered by the stable deployment guarantees. Then again, consoles are really not my area. So your call. |
This comment has been minimized.
This comment has been minimized.
|
We promise that parts of Prometheus itself is stable, that says nothing about our tarballs or other distribution mechanisms. Would you consider it okay to change our tarball layout within 1.0? |
This comment has been minimized.
This comment has been minimized.
|
No, I wanted to do a change to the tarball about 1 year ago and back then you and Julius already said it's too breaking to people. |
fabxc
closed this
Jul 26, 2016
fabxc
reopened this
Jul 26, 2016
This comment has been minimized.
This comment has been minimized.
|
Thinking on it, can we drop in some symlinks? |
This comment has been minimized.
This comment has been minimized.
|
That sounds good to me. |
jimmidyson
referenced this issue
Jul 29, 2016
Merged
Docker: Move console dirs to /usr/share/prometheus #1858
fabxc
closed this
in
#1858
Jul 30, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 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. |
anioool commentedJul 26, 2016
Hi,
It seems that image created by docker hub does not contain consoles and consoles_libraries under /etc/prometheus/ path.