Expose host property from prometheus/common#698
Closed
jkroepke wants to merge 4 commits intografana:mainfrom
Closed
Expose host property from prometheus/common#698jkroepke wants to merge 4 commits intografana:mainfrom
jkroepke wants to merge 4 commits intografana:mainfrom
Conversation
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
| `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 |
Contributor
There was a problem hiding this comment.
Suggested change
| `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.
Contributor
|
Over to @grafana/grafana-alloy-maintainers for code review |
Contributor
|
Ping for review? @grafana/grafana-agent-maintainers |
ptodev
reviewed
Jun 6, 2024
| FollowRedirects: h.FollowRedirects, | ||
| EnableHTTP2: h.EnableHTTP2, | ||
| ProxyConfig: h.ProxyConfig.Convert(), | ||
| Host: h.Host, |
Contributor
There was a problem hiding this comment.
@jkroepke It looks like Host got removed from the upstream repo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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