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

metrics: Make hostname label on TLS metrics configurable #3561

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zaharidichev
Copy link
Member

@zaharidichev zaharidichev commented Jan 24, 2025

This is a draft PR that illustrates a proposed approach for piping configuration for blanking the hostname label for outbound route metrics.

@@ -376,6 +384,12 @@ impl svc::Param<watch::Receiver<tls::Routes>> for TlsSidecar {
}
}

impl svc::Param<AllowHostnameLabels> for TlsSidecar {
Copy link
Member Author

Choose a reason for hiding this comment

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

In my mind sticking that to the target allows for easier way to eventually rely on discovery information for configuring that options. Correct me if I am wrong here.

Comment on lines +175 to +177
if let Some(hostname) = hostname {
("hostname", hostname.to_string()).encode(enc.encode_label())?;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Now that I think about that, this might actually remove the label instead of blanking it. Will correct that

@olix0r olix0r self-assigned this Jan 24, 2025
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