Skip to content

Commit

Permalink
Merge pull request #8 from canonical/fix/inform-clouds-about-compression
Browse files Browse the repository at this point in the history
fix: properly inform cloud endpoints about the snappy compression
  • Loading branch information
simskij authored Oct 5, 2023
2 parents 1f95183 + 1e6c686 commit b36d5c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/grafana_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,9 @@ def _enrich_endpoints(self) -> Tuple[List[Dict[str, Any]], List[Dict[str, Any]]]
loki_endpoints.append(
{
"url": self._cloud.loki_url,
"headers": {
"Content-Encoding": "snappy",
},
"basic_auth": {
"username": self._cloud.credentials.username,
"password": self._cloud.credentials.password,
Expand Down

0 comments on commit b36d5c7

Please sign in to comment.