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

[labels] Fix a bug in additional labels processing. #301

Merged
merged 1 commit into from
Feb 28, 2023
Merged

Conversation

manugarg
Copy link
Contributor

@manugarg manugarg commented Feb 28, 2023

This bug gets triggered if you're using additional_label with targets that have same name (but different labels or ports) within a probe, e.g. "host_names: www.google.com:80,www.google.com:443".

Additional labels will get mixed up if you've different targets with the same name because so far we were using only target names to maintain additional labels.

To fix this issue, use the same endpoint.Key() function while updating labels for the targets and retrieving them. In all the probes use a consistent argument for AdditionalLabel functions.

Also, add a wiki page about current status of additional labels (that I found while working this bug):
https://github.com/cloudprober/cloudprober/wiki/Additional-Labels-Rollout-Status

@manugarg manugarg added this to the v0.12.6 milestone Feb 28, 2023
Additional labels will get mixed up if you've multiple targets with the
same name (but different labels and ports) because we were using only
target names will maintaining additional labels.

Also, add a wiki page about current status of additional labels (that I
found while working this bug):

https://github.com/cloudprober/cloudprober/wiki/Additional-Labels-Rollout-Status
@manugarg manugarg merged commit be41fcf into master Feb 28, 2023
@manugarg manugarg deleted the label_bug branch February 28, 2023 23:52
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.

1 participant