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

Prometheus scrape does not support gzip header in GET requests #21975

Closed
st-omarkhalid opened this issue Dec 6, 2024 · 1 comment
Closed
Labels
source: prometheus_scrape Anything `prometheus_scrape` source related type: feature A value-adding code addition that introduce new functionality.

Comments

@st-omarkhalid
Copy link

st-omarkhalid commented Dec 6, 2024

Use Cases

The scraper downloads /metrics as text. There should be an option of adding gzip header. In production we're scraping servers which produce high cardinality metrics with /metrics ranging from 4-13MB across the servers. It would be great to download the metrics as compressed.

component_type=prometheus_scrape}:http: vector::internal_events::http_client: Sending HTTP request. uri=http://<ip>:8080/metrics method=GET version=HTTP/1.1 headers={"accept": "text/plain", "user-agent": "Vector/0.35.0 (x86_64-unknown-linux-gnu)", "accept-encoding": "identity"} body=[empty]

Attempted Solutions

No response

Proposal

No response

References

No response

Version

0.35.0

@st-omarkhalid st-omarkhalid added the type: feature A value-adding code addition that introduce new functionality. label Dec 6, 2024
@pront pront added the source: prometheus_scrape Anything `prometheus_scrape` source related label Dec 6, 2024
@jszwedko
Copy link
Member

jszwedko commented Dec 6, 2024

Thanks for this request @st-omarkhalid . I think it is the same as #20127 so I'll close this one, but feel free to follow the other!

@jszwedko jszwedko closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source: prometheus_scrape Anything `prometheus_scrape` source related type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

No branches or pull requests

3 participants