From 54f566451313888f99c5ea7c5bb5a9b7dc62e5a6 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Tue, 11 Mar 2025 13:20:04 +0100 Subject: [PATCH] source hostname label --- templates/config.alloy.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/config.alloy.erb b/templates/config.alloy.erb index b4c3562..a8402e5 100644 --- a/templates/config.alloy.erb +++ b/templates/config.alloy.erb @@ -50,12 +50,12 @@ loki.relabel "add_labels" { source_labels = ["hostname"] target_label = "hostname" } - rule { - source_labels = ["hostname_fallback"] - target_label = "hostname" - action = "replace" - replacement = "${__label:hostname_fallback}" // Only if hostname is unset - } + //rule { + // source_labels = ["hostname_fallback"] + // target_label = "hostname" + // action = "replace" + // replacement = "${__label:hostname_fallback}" // Only if hostname is unset + //} } loki.write "loki" {