-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scrape: make the initial scrape offset configurable
This change changes the `NoJitter` boolean configuration to a confiurable `InitialScrapeOffset` option. This will let serverless setups configure more freely how it will want to scrape workloads. This was needed because in some deployments in serverless environments the scraper (colocated with the workload) might not want to wait an entire scrape interval (since the target could be shortlived) but also might not want to scrape immediately when the target is not ready. Making this configurable lets the scrape controller (OpenTelemetry Contrib's prometheusreceiver) choose that is appropriate for it depending on its environment. Signed-off-by: Ridwan Sharif <ridwanmsharif@google.com>
- Loading branch information
1 parent
8600c14
commit 842a791
Showing
3 changed files
with
75 additions
and
47 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