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

Add hostname parameter for TCP probe #981

Merged

Conversation

lspiehler
Copy link
Contributor

This adds the ability to set the TLS server name for TCP probes using the hostname parameter just like #823 did for HTTP probes. It was mentioned by @Nothing4You in #624, and its something I need for monitoring in my environment as well.

Signed-off-by: Lyas Spiehler <lspiehler@gmail.com>
@lspiehler lspiehler force-pushed the servername-http-query-param-for-tcp branch from 4b0fc5e to f859c8e Compare October 25, 2022 15:58
Signed-off-by: Lyas Spiehler <lspiehler@gmail.com>
Signed-off-by: Lyas Spiehler <lspiehler@gmail.com>
Signed-off-by: Lyas Spiehler <lspiehler@gmail.com>
Copy link
Member

@electron0zero electron0zero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@electron0zero
Copy link
Member

looking for comments from @mem @roidelapluie, will merge if there are no comments :)

@gitanuj
Copy link

gitanuj commented Jan 31, 2023

This seems like a missing feature for tcp probes (since http probes already expose hostname). Would love to see this ship soon!

prober/handler.go Outdated Show resolved Hide resolved
@lspiehler lspiehler force-pushed the servername-http-query-param-for-tcp branch 2 times, most recently from 6a0c972 to b354fd3 Compare February 1, 2023 13:08
Signed-off-by: Lyas Spiehler <lspiehler@gmail.com>
@lspiehler lspiehler force-pushed the servername-http-query-param-for-tcp branch from b354fd3 to d207f64 Compare February 1, 2023 13:15
@electron0zero electron0zero merged commit 2894df6 into prometheus:master Feb 1, 2023
@electron0zero
Copy link
Member

merged, thanks @lspiehler :)

SuperQ added a commit that referenced this pull request May 16, 2023
* [CHANGE] Make Proxy Connect Headers consistent with Prometheus #1008
* [FEATURE] Add hostname parameter for TCP probe #981
* [FEATURE] Add support for HTTP request body as file #987

Signed-off-by: SuperQ <superq@gmail.com>
@SuperQ SuperQ mentioned this pull request May 16, 2023
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.

None yet

4 participants