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 upHandle in-progress scrapes more gracefully on config reload #2336
Comments
This comment has been minimized.
This comment has been minimized.
|
Another possible option would be to have a |
This comment has been minimized.
This comment has been minimized.
Stopping all processing for potentially minutes isn't something we should do imho. |
This comment has been minimized.
This comment has been minimized.
Doesn't need a separate action but just a validation whether the configuration changed or not. Sounds useful in general. Want to take a stab at implementing that? |
This comment has been minimized.
This comment has been minimized.
|
We've had it in the past where a HUP was used to work around various SD stuckness, I'm not sure we should lose that. |
brian-brazil
added
component/config
kind/enhancement
priority/P2
labels
Jul 14, 2017
brian-brazil
changed the title
Gracefully wait for scrapes to complete on config reload
Handle in-progress scrapes more gracefully on config reload
Jul 14, 2017
This comment has been minimized.
This comment has been minimized.
|
Closing in favour of #2756 |
brian-brazil
closed this
Jul 14, 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. |
SuperQ commentedJan 11, 2017
What did you do?
Reload (HUP) prometheus server to add new rules. In-flight scrapes get canceled with "context canceled". Thus making the
upmetric bounce to 0.What did you expect to see?
Reload is graceful, and waits for in-flight scrapes to complete or timeout before continuing with reload.
What did you see instead? Under which circumstances?
The Prometheus server stops scheduling new scrapes, waits for the in-flight scrapes to complete or timeout, then reload the config.
Environment
System information:
insert output of
uname -srmherePrometheus version:
insert output of
prometheus -versionhereAlertmanager version:
insert output of
alertmanager -versionhere (if relevant to the issue)Prometheus configuration file: