diff --git a/templates/config.alloy.erb b/templates/config.alloy.erb index df6c0db..fd33a85 100644 --- a/templates/config.alloy.erb +++ b/templates/config.alloy.erb @@ -25,12 +25,7 @@ loki.relabel "add_labels" { source_labels = ["__host__"] target_label = "hostname" } - rule { - action = "replace" - source_labels = "${env.HOSTNAME}" - target_label = "hostname" - } - rule { + rule { action = "replace" target_label = "job" replacement = "syslogs"