Skip to content

Allow custom user-agent definition#725

Merged
SuperQ merged 6 commits intoprometheus:mainfrom
mmorel-35:user-agent
Nov 16, 2024
Merged

Allow custom user-agent definition#725
SuperQ merged 6 commits intoprometheus:mainfrom
mmorel-35:user-agent

Conversation

@mmorel-35
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

/cc @SuperQ

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Comment thread version/info.go Outdated
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
@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