mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -08:00
Merge pull request #637 from fabxc/fix/scrape_timeout
Fix scrape timeout in config.
This commit is contained in:
commit
54f5c524e5
|
@ -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 a new issue