From 94a1253d6f941a42a3cd8b59eb14718e370fe0ec Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Tue, 11 Mar 2025 11:53:38 +0100 Subject: [PATCH] add 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 a015f96..c0da51f 100644 --- a/templates/config.alloy.erb +++ b/templates/config.alloy.erb @@ -33,6 +33,11 @@ loki.relabel "add_labels" { source_labels = ["__host__"] // Internal hostname from constants.hostname target_label = "hostname" } + rule { + action = "replace" + target_label = "hostname" + replacement = "fqdn" + } rule { action = "replace" target_label = "job"