Does PrometheusHttpServer support gzip compression, and how can I configure it #6114
Answered
by
jack-berg
GenerousMan
asked this question in
Q&A
-
I'm exposing metrics on port 9090 with PrometheusHttpServer, but the sheer volume of data is really straining my network bandwidth. I'm thinking about using gzip compression to ease up on the network load. Right now, I'm on the 1.29.0-alpha version, and I noticed there's a shouldUseCompression method in there. Is there a way to configure this compression setting? |
Beta Was this translation helpful? Give feedback.
Answered by
jack-berg
Jan 4, 2024
Replies: 1 comment 2 replies
-
PrometheusHttpServer will gzip compress the content if the request includes |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
GenerousMan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PrometheusHttpServer will gzip compress the content if the request includes
Accept-Encoding: gzip