From 0280d74167b14cf17992765284e9ac9f4948611e Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Wed, 15 Apr 2015 13:46:27 +0200 Subject: [PATCH] Fix scrape timeout in config. The scrape timeout helper was wrapping the scrape interval. --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) }