full cycle hostname label
This commit is contained in:
@@ -22,8 +22,8 @@ loki.relabel "add_labels" {
|
||||
|
||||
rule {
|
||||
action = "replace"
|
||||
source_labels = ["__hostname__"]
|
||||
target_label = "hostname"
|
||||
replacement = "${constants.hostname}"
|
||||
}
|
||||
rule {
|
||||
action = "replace"
|
||||
|
||||
Reference in New Issue
Block a user