add hostname label
This commit is contained in:
@@ -33,6 +33,11 @@ loki.relabel "add_labels" {
|
||||
source_labels = ["__host__"] // Internal hostname from constants.hostname
|
||||
target_label = "hostname"
|
||||
}
|
||||
rule {
|
||||
action = "replace"
|
||||
target_label = "hostname"
|
||||
replacement = "fqdn"
|
||||
}
|
||||
rule {
|
||||
action = "replace"
|
||||
target_label = "job"
|
||||
|
||||
Reference in New Issue
Block a user