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 upImplement Configuration and Target Reloading via Disk Watches #108
Comments
ghost
assigned
bernerdschaefer
May 14, 2013
This comment has been minimized.
This comment has been minimized.
|
+1 |
This comment has been minimized.
This comment has been minimized.
|
I'm likely to get to this in the next few weeks. |
bernerdschaefer
removed their assignment
Mar 20, 2015
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil That'd be awesome. Now restart prometheus automatically by using https://github.com/docker-infra/prometheus-consul and I hope I won't run into issues for now. |
This comment has been minimized.
This comment has been minimized.
|
I haven't touched this since then unfortunately. |
This comment has been minimized.
This comment has been minimized.
|
@fabxc will likely work on this as part of his internship. |
This comment has been minimized.
This comment has been minimized.
|
This will probably be on hold until service discovery is done, though - unless it's considered super urgent. |
This comment has been minimized.
This comment has been minimized.
|
How do you guys want to do service discovery? :) |
This comment has been minimized.
This comment has been minimized.
|
http://prometheus.io/docs/introduction/roadmap/#support-for-more-types-of-service-discovery is the roadmap entry. We are in the design state right now. |
This comment has been minimized.
This comment has been minimized.
|
We'll also want to reload the config on |
This comment has been minimized.
This comment has been minimized.
|
I would even prefer to have disk watches be optional. I'd much prefer explicit SIGHUPs in many cases (e.g. when I can't guarantee that the config file is replaced atomically). |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
levilovelock
commented
Apr 16, 2015
|
I'm in the same position as @discordianfish - would prefer just having SD first, but config refresh would let me brew my own workaround at least. |
This comment has been minimized.
This comment has been minimized.
|
@levilovelock Just work-wise, it makes much more sense to get SD in order first as a base for implementing sane reloadable configs. Expect both soon[tm]. |
This comment has been minimized.
This comment has been minimized.
|
We'll also want to reload changed rule files. |
fabxc
referenced this issue
May 7, 2015
Closed
Automatic reload of configuration and rules when files have changed #679
This comment has been minimized.
This comment has been minimized.
|
We had a discussion that it might be better to reload only upon SIGHUP (which is implemented by now). Does anybody feel a strong need for a file watch? If yes, I'd be willing to make the point against it. |
beorn7
self-assigned this
May 21, 2015
This comment has been minimized.
This comment has been minimized.
|
For configuration, a HUP is safest as it lets you do atomic changes. |
This comment has been minimized.
This comment has been minimized.
dylanmei
commented
May 21, 2015
|
This work is great. I can use console-template or confd to handle config changes and fire the SIGHUP. |
This comment has been minimized.
This comment has been minimized.
|
As we don't apply bad config/rules it would work but so far we all agreed On Thu, May 21, 2015 at 6:44 PM Dylan Meissner notifications@github.com
|
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Thanks for your feedback. Closing. |
beorn7
closed this
May 22, 2015
This comment has been minimized.
This comment has been minimized.
mingfang
commented
Sep 6, 2015
|
I like the way nginx works. |
This comment has been minimized.
This comment has been minimized.
|
@mingfang That's pretty much how prometheus works: Use the promtool to check the config, then send prometheus a HUP signal. |
This comment has been minimized.
This comment has been minimized.
mvmn
commented
Nov 15, 2016
|
How often can I do reload? |
This comment has been minimized.
This comment has been minimized.
|
Once a minute should be fine |
This comment has been minimized.
This comment has been minimized.
mvmn
commented
Nov 15, 2016
|
Good. Thanks! |
simonpasquier
pushed a commit
to simonpasquier/prometheus
that referenced
this issue
Oct 12, 2017
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. |
matttproud commentedMar 28, 2013
http://golang.org/pkg/syscall/#InotifyAddWatch