From 267d647e7c612e8408e2d7b7c3bdae4099f75f29 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Tue, 11 Mar 2025 14:59:18 +0100 Subject: [PATCH] full cycle hostname label --- templates/config.alloy.erb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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"