add hostname label
This commit is contained in:
@@ -25,6 +25,11 @@ loki.relabel "add_labels" {
|
||||
source_labels = ["__host__"]
|
||||
target_label = "hostname"
|
||||
}
|
||||
rule {
|
||||
action = "replace"
|
||||
source_label = "__host__"
|
||||
target_label = "hostname"
|
||||
}
|
||||
rule {
|
||||
action = "replace"
|
||||
target_label = "hostname"
|
||||
|
||||
Reference in New Issue
Block a user