From 654989ce7c57221864f78232aa0e89f6d5c33db6 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Tue, 11 Mar 2025 15:58:36 +0100 Subject: [PATCH] journal hostname label --- templates/config.alloy.erb | 5 +++++ 1 file changed, 5 insertions(+) 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"