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

Support for GZIP compression on federation endpoint #2986

Closed
boeboe opened this Issue Jul 25, 2017 · 4 comments

Comments

Projects
None yet
3 participants
@boeboe
Copy link

boeboe commented Jul 25, 2017

Hi,

I'd like to know if there is support to enable GZIP compression on the federation endpoint? I noticed that right now "text/plain" is used without compression. I'm looking for something like:

Content-Type: text/plain
Content-Encoding: gzip 

Currently I am confronted with 55k line of metrics, resulting in 23.1MB of plain text data to be send every scrape interval. When there would be support for GZIP compression, the wire transfer amount would be 1.7MB, resulting in 92% of bandwidth saviour.

Example metrics attached as file.
metrics.log.gz

@grobie

This comment has been minimized.

Copy link
Member

grobie commented Jul 25, 2017

We already support gzip compression. You need to set the Accept-Encoding: gzip HTTP header.

curl -v -s -H 'Accept-Encoding: gzip' 'http://demo.robustperception.io:9090/federate?match\[\]=up%7Bjob%3D%22prometheus%22%7D' >/dev/null 2>&1 | grep Content-        
< Content-Encoding: gzip
< Content-Type: text/plain; version=0.0.4
< Content-Length: 124

@grobie grobie closed this Jul 25, 2017

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Jul 25, 2017

@boeboe

This comment has been minimized.

Copy link
Author

boeboe commented Jul 25, 2017

Thanks for your quick response @brian-brazil .

Exactly how is this configured on the configuration side (https://prometheus.io/docs/operating/federation) or is this done out of the box?

BR,
Bart

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 23, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.