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]
rule {
action = "replace"
source_labels = ["__hostname__"]
target_label = "hostname"
action = "replace"
target_label = "hostname"
replacement = "${constants.hostname}"
}
rule {
action = "replace"