Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Override Promtail User-Agent header - #270

Merged
rfratto merged 4 commits into
grafana-cold-storage:masterfrom
rfratto:loki-user-agent
Dec 7, 2020
Merged

Override Promtail User-Agent header#270
rfratto merged 4 commits into
grafana-cold-storage:masterfrom
rfratto:loki-user-agent

Conversation

@rfratto

@rfratto rfratto commented Dec 2, 2020

Copy link
Copy Markdown
Contributor

Fixes #188

PR Description

Which issue(s) this PR fixes

Notes to the Reviewer

The hack that forced the Agent after Loki in the dependency graph is no longer needed; my PR to Loki (which has been vendored for a while) fixed the issue that required it.

PR Checklist

  • CHANGELOG updated
  • Documentation added
  • Tests updated

@rfratto
rfratto requested a review from a team December 2, 2020 16:42
This avoids the same problem that Loki originally had and allows
downstream importers that use prometheus/common/version to import
the loki package without it overwriting their build info.
@rfratto
rfratto merged commit 68e13a5 into grafana-cold-storage:master Dec 7, 2020
@rfratto
rfratto deleted the loki-user-agent branch December 7, 2020 13:52
@mattdurham mattdurham mentioned this pull request Sep 7, 2021
3 tasks
mattdurham pushed a commit that referenced this pull request Nov 11, 2021
* override Loki User-Agent header

Fixes #188

* update CHANGELOG

* revert hacky workaround, no longer needed now that fix in loki is merged

* use prometheus version for setting user-agent header

This avoids the same problem that Loki originally had and allows
downstream importers that use prometheus/common/version to import
the loki package without it overwriting their build info.
@github-actions github-actions Bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Apr 22, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom User-Agent header for Loki

2 participants