diff --git a/templates/config.alloy.erb b/templates/config.alloy.erb index 5475c0a..056e101 100644 --- a/templates/config.alloy.erb +++ b/templates/config.alloy.erb @@ -45,6 +45,11 @@ loki.relabel "add_labels" { forward_to = [loki.write.loki.receiver] rule { + action = "replace" + source_labels = ["__hostname"] + target_label = "hostname" + } + rule { action = "replace" target_label = "job" replacement = "syslogs"