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

Add config reload endoint / signal to promtail #16

Closed
tomwilkie opened this issue Jun 27, 2018 · 13 comments · Fixed by #7247
Closed

Add config reload endoint / signal to promtail #16

tomwilkie opened this issue Jun 27, 2018 · 13 comments · Fixed by #7247
Labels
component/agent keepalive An issue or PR that will be kept alive and never marked as stale.

Comments

@tomwilkie
Copy link
Contributor

So we don't have to restart all the pods just to change the scrape config etc.

@stale
Copy link

stale bot commented Sep 3, 2019

This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale A stale issue or PR that will automatically be closed. label Sep 3, 2019
@hairyhenderson
Copy link
Member

Seems like there's a PR for this pending - would be nice to see this happen instead of the issue going stale and disappearing 😉

@stale stale bot removed the stale A stale issue or PR that will automatically be closed. label Sep 3, 2019
@cyriltovena
Copy link
Contributor

@hairyhenderson how this would be useful for you ? Can you give us more informations ?

@hairyhenderson
Copy link
Member

@cyriltovena like the description says, it's annoying to restart processes to reload configs. I'm used to being able to send a signal or call a reload endpoint in Prometheus, and this is one area where Loki isn't "Like Prometheus, but for logs" 😉

@cyriltovena
Copy link
Contributor

cyriltovena commented Sep 3, 2019

yeah but Prometheus could miss some scrape and it makes sense to not restart to avoid this kind of behaviour, promtail though won't miss anything as everything is on disk.

@hairyhenderson
Copy link
Member

Sure... But there are side-effects of processes terminating which may be undesirable. And, it's conventional for processes in UNIX to listen to a SIGHUP and reload config based on that.

I suppose my question is: why would you not want this feature?

@cyriltovena cyriltovena added the keepalive An issue or PR that will be kept alive and never marked as stale. label Sep 3, 2019
@pastatopf
Copy link
Contributor

Upvote fromy my side :-)

@Perry-The-Cynic
Copy link

It's no longer true that (from promtail's perspective) "everything is on disk." The syslog endpoint has data pushed onto promtail, and depending on the retry policy of the sender restarting promtail may drop some messages.

@cyriltovena
Copy link
Contributor

It's no longer true that (from promtail's perspective) "everything is on disk." The syslog endpoint has data pushed onto promtail, and depending on the retry policy of the sender restarting promtail may drop some messages.

Very good point. Although that seems easier to fix than implementing a reload.

@timurkhisamov
Copy link

Upvote

@tomasfreund
Copy link

Hi, this is a big issue for us. We provision client certificates for promtail with ACME dns-01 challenge and promtail does not seem to reload the certificates at all. We need promtail to either reload certificates or to have a config reload endpoint so that we can reuse existing tooling from Prometheus.

periklis pushed a commit to periklis/loki that referenced this issue Dec 6, 2021
xperimental referenced this issue in xperimental/loki Mar 17, 2022
@marcusne
Copy link

Hi, same here /reload would be really helpful to maintain promtail in K8s or at least support e.g. SIGHUP

@liguozhong
Copy link
Contributor

reload is a very dangerous feature, it is easy to make promtail panic, we can refer to the failure history of another log agent

vectordotdev/vector#10485
vectordotdev/vector#10412
vectordotdev/vector#13228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/agent keepalive An issue or PR that will be kept alive and never marked as stale.
Projects
None yet
9 participants