add hostname label
This commit is contained in:
@@ -30,6 +30,11 @@ loki.relabel "add_labels" {
|
||||
target_label = "hostname"
|
||||
replacement = "${env.HOSTNAME}"
|
||||
}
|
||||
rule {
|
||||
action = "replace"
|
||||
source_label = "${env.HOSTNAME}"
|
||||
target_label = "hostname"
|
||||
}
|
||||
rule {
|
||||
action = "replace"
|
||||
target_label = "job"
|
||||
|
||||
Reference in New Issue
Block a user