Skip to content
Snippets Groups Projects
Commit 6ff1d5c5 authored by Krasi Georgiev's avatar Krasi Georgiev
Browse files

add the scrape manager config reloader

handle errors with invalid scrape config
parent b0d4f6ee
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -285,6 +285,7 @@ func main() {
discoveryManager.ApplyConfig,
webHandler.ApplyConfig,
notifier.ApplyConfig,
scrapeManager.ApplyConfig,
func(cfg *config.Config) error {
// Get all rule files matching the configuration oaths.
var files []string
Loading
Loading
Loading
Loading
@@ -61,7 +61,9 @@ func (m *ScrapeManager) Run(tsets <-chan map[string][]*config.TargetGroup) error
case f := <-m.actionCh:
f()
case ts := <-tsets:
m.reload(ts)
if err := m.reload(ts); err != nil {
level.Error(m.logger).Log("msg", "error reloading the scrape manager", "err", err)
}
case <-m.graceShut:
return nil
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment