Skip to content
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

Allow custom user-agent definition #725

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 <[email protected]>
@mmorel-35
Copy link
Contributor Author

/cc @SuperQ

Signed-off-by: Matthieu MOREL <[email protected]>
version/info.go Outdated Show resolved Hide resolved
mmorel-35 and others added 4 commits November 16, 2024 10:15
Co-authored-by: Ben Kochie <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]>
@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