canonical / grafana-agent-k8s-operator

This charmed operator automates the operational procedures of running Grafana Agent, an open-soruce telemetry collector.
https://charmhub.io/grafana-agent-k8s
Apache License 2.0
8 stars 18 forks source link

fix: properly inform cloud endpoints about the snappy compression #261

Closed simskij closed 11 months ago

simskij commented 11 months ago

Issue

When using Grafana Agent with a logging backend other than Loki, we need to inform that backend about the payloads being compressed using snappy. Loki knows this is the case implicitly, but a third-party won't.

Solution

Add a Content-Encoding header to all outgoing requests.

Context

This is useful when integrating with, for instance, Vector or Logstash, as they otherwise have no way of knowing about the encoding/compression.

Testing Instructions

Release Notes

Properly advertise snappy compression when using the cloud integrator