add hostname label

This commit is contained in:
Arne Teuke
2025-03-11 14:40:39 +01:00
parent 6448cea9a5
commit 77388a6d8c

View File

@@ -25,6 +25,11 @@ loki.relabel "add_labels" {
source_labels = ["__host__"] source_labels = ["__host__"]
target_label = "hostname" target_label = "hostname"
} }
rule {
action = "replace"
source_label = "__host__"
target_label = "hostname"
}
rule { rule {
action = "replace" action = "replace"
target_label = "hostname" target_label = "hostname"