diff --git a/config/config.go b/config/config.go index 1292f6c7a..c844f3a0c 100644 --- a/config/config.go +++ b/config/config.go @@ -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()) }