Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyroscope.scrape: Adjust handling of scrape_timeout #6252

Conversation

simonswine
Copy link
Contributor

@simonswine simonswine commented Jan 26, 2024

This automatically adapts the timeout when a ProfilingTarget is fetched
with Delta=true. In those cases the HTTP call is blocked for ScrapeInterval - 1s while the target profiles itself.

This also updates the ScrapeTimeout to be 10s (default in prometheus).

@simonswine simonswine requested a review from a team as a code owner January 26, 2024 11:27
@simonswine simonswine force-pushed the 20240126_adjust-timeout-when-blocking-collection branch from 097f236 to 5a57270 Compare January 26, 2024 11:30
This automatically adapts the timeout when a ProfilingTarget is fetched
with Delta=true. In those cases the HTTP calll is block for
ScrapeInterval - 1s while the target profiles itself.

This also updates the ScrapeTimeout to 10s (default in prometheus).
@simonswine simonswine force-pushed the 20240126_adjust-timeout-when-blocking-collection branch from 5a57270 to 4f1f679 Compare February 8, 2024 11:47
Copy link
Contributor

@korniltsev korniltsev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@tpaschalis tpaschalis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable

@tpaschalis tpaschalis merged commit 6eb1889 into grafana:main Feb 14, 2024
10 checks passed
BarunKGP pushed a commit to BarunKGP/grafana-agent that referenced this pull request Feb 20, 2024
* pyroscope.scrape: Adjust handling of scrape_timeout

This automatically adapts the timeout when a ProfilingTarget is fetched
with Delta=true. In those cases the HTTP calll is block for
ScrapeInterval - 1s while the target profiles itself.

This also updates the ScrapeTimeout to 10s (default in prometheus).

* Adapt tests to the dynamic timeout

* Fix linting problem
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Mar 16, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants