full cycle hostname label

This commit is contained in:
Arne Teuke
2025-03-11 15:28:26 +01:00
parent 2f8aea6066
commit 6c0192f50f

View File

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