-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: Validate timeout and interval of the scrape configuration
In general we want to stick to the configured interval and don't overrun because of slow or timing out scraping. Go's /debug/pprof/profile endpoint will start profiling when being invoked, has no support for concurrency and the timeout can only be configured in seconds. The existing code alternated between using "Seconds", "Delta"+ScrapeInterval but none of these work correctly when enforcing timeout <= interval. Make sure that "seconds" < ScrapeTimeout <= ScrapeInterval and adjust the default configuration to honor this. In the long run we should consider treating this endpoint entirely different to the others (e.g. jitter scraping instead of sticking to interval, profile for a longer duration). Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com>
- Loading branch information
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters