-
Notifications
You must be signed in to change notification settings - Fork 246
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
Expose host property from prometheus/common #698
Conversation
Signed-off-by: Jan-Otto Kröpke <[email protected]>
Signed-off-by: Jan-Otto Kröpke <[email protected]>
@@ -32,6 +32,7 @@ Name | Type | Description | |||
`proxy_from_environment` | `bool` | Use the proxy URL indicated by environment variables. | `false` | no | |||
`proxy_connect_header` | `map(list(secret))` | Specifies headers to send to proxies during CONNECT requests. | | no | |||
`follow_redirects` | `bool` | Whether redirects returned by the server should be followed. | `true` | no | |||
`host` | `string` | Override HTTP hostname | | no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`host` | `string` | Override HTTP hostname | | no | |
`host` | `string` | Override HTTP hostname. | | no |
For consistency, we should add a full stop (period) at the end of this description. This should be cascaded to to all instances of Override HTTP hostname.
Over to @grafana/grafana-alloy-maintainers for code review |
Ping for review? @grafana/grafana-agent-maintainers |
@@ -92,6 +93,7 @@ func (h *HTTPClientConfig) Convert() *config.HTTPClientConfig { | |||
FollowRedirects: h.FollowRedirects, | |||
EnableHTTP2: h.EnableHTTP2, | |||
ProxyConfig: h.ProxyConfig.Convert(), | |||
Host: h.Host, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jkroepke It looks like Host
got removed from the upstream repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, see prometheus/common#645
PR Description
In prometheus/common#549 I add the possibility to define a custom HTTP header. I would like to use that feature in Grafana Alloy as well.
Which issue(s) this PR fixes
Notes to the Reviewer
PR Checklist