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 upIf the frequency update the prometheus.yml is faster than scrape, it will never to scrape data #3315
Comments
This comment has been minimized.
This comment has been minimized.
|
Is this something you are interpreting from the code or something you observed in a running instance. The called Note that you should generally not have a need to reload Prometheus frequently regardless. |
This comment has been minimized.
This comment has been minimized.
|
If this was a problem, it should no longer be the case with the latest versions. |
brian-brazil
closed this
Mar 20, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 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. |
shanquanqiang commentedOct 19, 2017
If the frequency update the prometheus.yml is faster than scrape, it will never to scrape data.
it will return in case <-sl.scrapeCtx.Done():
func (sl *scrapeLoop) run(interval, timeout time.Duration, errc chan<- error) {
select {
case <-time.After(sl.scraper.offset(interval)):
// Continue after a scraping offset.
case <-sl.scrapeCtx.Done():
close(sl.stopped)
return
}