linkerd2/proxy/tests/support
Eliza Weisman a2c60e8fcf
Add optional GZIP compression to proxy /metrics endpoint (#665)
Closes #598.

According to the Prometheus documentation, metrics export endpoints should support serving metrics compressed using GZIP. I've modified the proxy's `/metrics` endpoint to serve metrics compressed with GZIP when an `Accept-Encoding: gzip` request header is sent.

I've also added a new unit test that attempts to get the proxy's metrics endpoint as GZIP, and asserts that the metrics are decompressed successfully.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2018-04-24 17:42:50 -07:00
..
client.rs proxy: clean up some logs and a few warnings in proxy tests (#780) 2018-04-17 12:53:20 -07:00
controller.rs proxy: Rewrite mock controller to accept a stream of dst updates (#808) 2018-04-19 11:01:10 -07:00
mod.rs Add optional GZIP compression to proxy /metrics endpoint (#665) 2018-04-24 17:42:50 -07:00
proxy.rs proxy tests: reduce some boilerplate, improve error information (#833) 2018-04-23 18:01:51 -07:00
server.rs proxy: improve graceful shutdown process (#684) 2018-04-10 14:15:37 -07:00
tcp.rs proxy tests: reduce some boilerplate, improve error information (#833) 2018-04-23 18:01:51 -07:00