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

alt_stat_name as a standardized observability label for clusters #14309

Closed
htuch opened this issue Dec 7, 2020 · 4 comments · Fixed by #15139
Closed

alt_stat_name as a standardized observability label for clusters #14309

htuch opened this issue Dec 7, 2020 · 4 comments · Fixed by #15139
Assignees
Labels

Comments

@htuch
Copy link
Member

htuch commented Dec 7, 2020

Currently, Cluster has an alt_stat_name field that is used for stats only. It seems that this would be useful for both tracing and access logs (to the extent that service names appear that at all). This allows for a semantically meaningful label to be consumed by monitoring and humans, regardless of the resource name (which might be reflecting addressing or config pipeline artifacts, e.g. when we start using xdstp:// URLs).

I'd like to propose we either repurpose alt_stat_name as the general observability name or create an explicit, more general, observability_name that applies across stats/logging/tracing. Within Envoy, we would have a clean C++ abstraction to access this in ClusterInfo.

Ultimately this would apply to other resources as well, but clusters is where we (Google) have a specific interest today.

CC @envoyproxy/api-shepherds

@mattklein123
Copy link
Member

I think it would be fine to use alt_stat_name for general observability naming and tag the field for a name change in the next major version. I'm not sure it's worth the churn to change the name now.

@htuch
Copy link
Member Author

htuch commented Dec 8, 2020

Sounds good. I imagine we should set a runtime flag to control its use in tracing/logs, in case this breaks anyone, but we can default it true?

@mattklein123
Copy link
Member

Sure runtime flag sgtm but IMO we can default it to on as you say.

@github-actions
Copy link

github-actions bot commented Jan 8, 2021

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale stalebot believes this issue/PR has not been touched recently label Jan 8, 2021
@htuch htuch added help wanted Needs help! and removed stale stalebot believes this issue/PR has not been touched recently labels Jan 8, 2021
@asraa asraa self-assigned this Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants