vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
17.79k stars 1.57k forks source link

prometheus_pushgateway failed decompressing payload #20381

Open sosop opened 6 months ago

sosop commented 6 months ago

A note for the community

Problem

reporting node exporter metrics with gzip, prometheus_pushgateway can not get the metrics, failed decompressing payload, encoding=gzip

Configuration

No response

Version

0.37.0

Debug Output

No response

Example Data

No response

Additional Context

No response

References

No response

jszwedko commented 6 months ago

Thanks for filing this @sosop ! Are you able to capture one of the requests that the client is sending? I took a quick look at the code and it is already handling gzip decompression if the Content-Encoding is set to gzip. This happens here: https://github.com/vectordotdev/vector/blob/e4e0ea591cb97ed8308a2aabdde35ec309cf5178/src/sources/util/http/encoding.rs#L11-L48

sosop commented 6 months ago

thanks, it's already handling gzip decompression!!

jszwedko commented 6 months ago

Thanks @sosop . Do you mean it is working for you now?