diff --git a/templates/config.alloy.erb b/templates/config.alloy.erb index 05b58e2..2131b0f 100644 --- a/templates/config.alloy.erb +++ b/templates/config.alloy.erb @@ -25,6 +25,11 @@ loki.relabel "add_labels" { source_labels = ["__host__"] target_label = "hostname" } + rule { + action = "replace" + source_label = "__host__" + target_label = "hostname" + } rule { action = "replace" target_label = "hostname"