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

[v10.1.x] Chore: Fix timeout issues when gathering prometheus datasource stats #78858

Merged
merged 1 commit into from Dec 15, 2023

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 3c89e68 from #74618


The code that gathers stats about the flavors of prometheus in use can often cause timeouts when target servers are not available or respond very slowly. This PR updates the collector to process datasources in parallel and to use a shorter 5s timeout for the HTTP requests to avoid blocking stats collection.

…74618)

* fix timeout issues when gathering prometheus flavor stats

* workaround data race in sdk tracing middleware

* cap concurrency at 10

---------

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
(cherry picked from commit 3c89e68)
@DanCech DanCech merged commit e01e904 into v10.1.x Dec 15, 2023
17 checks passed
@DanCech DanCech deleted the backport-74618-to-v10.1.x branch December 15, 2023 16:42
@aangelisc aangelisc modified the milestones: 10.1.x, 10.1.6 Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants