add hostname label

This commit is contained in:
Arne Teuke
2025-03-11 14:40:09 +01:00
parent 86b0e99a86
commit 6448cea9a5

View File

@@ -30,6 +30,11 @@ loki.relabel "add_labels" {
target_label = "hostname" target_label = "hostname"
replacement = "${env.HOSTNAME}" replacement = "${env.HOSTNAME}"
} }
rule {
action = "replace"
source_label = "${env.HOSTNAME}"
target_label = "hostname"
}
rule { rule {
action = "replace" action = "replace"
target_label = "job" target_label = "job"