Skip to content

does agent uses compression for sending metrics/logs? #1502

Answered by mvadu
mvadu asked this question in Q&A
Discussion options

You must be logged in to vote

I think I am going to answer my own question, at least for metric part..
Based on Prometheus Remote Write spec the write is snappy compressed. Looks like the data while being saved to wal gets compressed, and same gets sent over.

https://github.com/prometheus/prometheus/blob/6aaa6dbb59fa3870f2c6b10a0d9b834812df7f73/tsdb/wal/wal.go#L627

Similarly promtail uses the same snappy compression

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mvadu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant