-
Notifications
You must be signed in to change notification settings - Fork 39
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
Relabel host #751
Conversation
# Generate host alias | ||
- source_labels: [ host ] | ||
action: hashmod | ||
regex: (.+) |
There was a problem hiding this comment.
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.
* Relabel host value --------- Co-authored-by: Nina Segares <[email protected]>
Mask host value with hash or alias
Metrics without a host won't be affected
Metrics with a host display a hash or alias value