full cycle hostname label

This commit is contained in:
Arne Teuke
2025-03-11 15:20:05 +01:00
parent 82bbdd17f0
commit 2f8aea6066

View File

@@ -21,9 +21,9 @@ loki.relabel "add_labels" {
forward_to = [loki.write.loki.receiver] forward_to = [loki.write.loki.receiver]
rule { rule {
action = "replace" action = "replace"
source_labels = ["__hostname__"] target_label = "hostname"
target_label = "hostname" replacement = "${constants.hostname}"
} }
rule { rule {
action = "replace" action = "replace"