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

Relabel host #751

Merged
merged 38 commits into from
Feb 20, 2024
Merged

Conversation

sgeannina
Copy link
Contributor

Mask host value with hash or alias

Metrics without a host won't be affected
image

Metrics with a host display a hash or alias value
image

@sgeannina sgeannina requested a review from a team as a code owner February 20, 2024 21:38
# Generate host alias
- source_labels: [ host ]
action: hashmod
regex: (.+)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this filter doesn't really work as expected and it generates a hash for all metrics, the column is dropped at the end anyway so this behaviour is not visible. The replace logic has to check both [hostalias, host] as hashed alias will always have a value but host will be empty for metrics without this label.

@sgeannina sgeannina merged commit c1462a7 into ccp_shell_removal_branch_prod Feb 20, 2024
2 checks passed
bragi92 pushed a commit that referenced this pull request Apr 15, 2024
* Relabel host value

---------

Co-authored-by: Nina Segares <[email protected]>
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