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: Fix label merging in metric sets #12474

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

monstermunchkin
Copy link
Contributor

This changes the Merge function to apply any missing labels from the
receiver to all samples from the argument.

This fixes an issue where filesystem stats would be missing certain
labels which were not explicitly set for the filesystem stats metric
set.

This changes the Merge function to apply any missing labels from the
receiver to all samples from the argument.

This fixes an issue where filesystem stats would be missing certain
labels which were not explicitly set for the filesystem stats metric
set.

Signed-off-by: Thomas Hipp <[email protected]>
@monstermunchkin monstermunchkin changed the title y metrics: Fix label merging in metric sets Oct 27, 2023
Copy link
Member

@simondeziel simondeziel left a comment

Choose a reason for hiding this comment

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

Thanks! Would you mind adding a few tests to test/metrics.sh, please?

@tomponline tomponline merged commit e57a070 into canonical:main Nov 2, 2023
24 of 25 checks passed
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.

3 participants