mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-31 14:56:35 +00:00
mi: make timeout configurable for build functions (#2377)
This commit is contained in:
@@ -136,7 +136,7 @@ func (c *Collection) collectCollector(ch chan<- prometheus.Metric, logger *slog.
|
||||
close(bufCh)
|
||||
}()
|
||||
|
||||
errCh <- collector.Collect(bufCh)
|
||||
errCh <- collector.Collect(bufCh, maxScrapeDuration)
|
||||
}()
|
||||
|
||||
wg := sync.WaitGroup{}
|
||||
|
||||
Reference in New Issue
Block a user