mirror of
https://github.com/prometheus/prometheus
synced 2025-01-12 01:29:43 +00:00
Fix scrape timeout in config.
The scrape timeout helper was wrapping the scrape interval.
This commit is contained in:
parent
49d67fc834
commit
0280d74167
@ -163,5 +163,5 @@ func (c JobConfig) ScrapeInterval() time.Duration {
|
||||
|
||||
// ScrapeTimeout gets the scrape timeout for a job.
|
||||
func (c JobConfig) ScrapeTimeout() time.Duration {
|
||||
return stringToDuration(c.GetScrapeInterval())
|
||||
return stringToDuration(c.GetScrapeTimeout())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user