10000 Allow custom user-agent definition by mmorel-35 · Pull Request #725 · prometheus/common · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Allow custom user-agent definition #725

8000
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 16, 2024
Merged

Conversation

mmorel-35
Copy link
Contributor
@mmorel-35 mmorel-35 commented Nov 16, 2024

Most of the time the User-agent is Prometheus/Version but might be changed to Component/Version in certain occasion, for example promtool.
This exposes a PrometheusUserAgent which is the most common case and also provide a ComponentUserAgent to support a component customization.

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
@mmorel-35
Copy link
Contributor Author

/cc @SuperQ

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
mmorel-35 and others added 4 commits November 16, 2024 10:15
Co-authored-by: Ben Kochie <superq@gmail.com>
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
@SuperQ SuperQ merged commit 7ed4523 into prometheus:main Nov 16, 2024
7 checks passed
@SuperQ SuperQ changed the title Open user-agent definition Allow custom user-agent definition Nov 16, 2024
@mmorel-35 mmorel-35 deleted the user-agent branch November 16, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0