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

Re-use http.Transport Scrape() calls #9

Merged
merged 1 commit into from
Dec 12, 2021
Merged

Re-use http.Transport Scrape() calls #9

merged 1 commit into from
Dec 12, 2021

Conversation

williamchanrico
Copy link
Owner

This PR confirms the connection reuse on collector/task/ebpf.
Closes #8

Fixes repeated prometheus/prometheus.go#L34 calls leaking http.Transport. The leaked http.Transport causes healthy HTTP connections triggered by pkg/prometheus.Scrape to stay around.

Note: collector/task/darkstat Scrape calls are confirmed to be unaffected (ESTABLISHED conn between Planet Exporter and Darkstat goes through the last ACK into TIME-WAIT immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Too many pages open" with taskEbpfEnabled=true
1 participant