source hostname label
This commit is contained in:
@@ -50,12 +50,12 @@ loki.relabel "add_labels" {
|
|||||||
source_labels = ["hostname"]
|
source_labels = ["hostname"]
|
||||||
target_label = "hostname"
|
target_label = "hostname"
|
||||||
}
|
}
|
||||||
rule {
|
//rule {
|
||||||
source_labels = ["hostname_fallback"]
|
// source_labels = ["hostname_fallback"]
|
||||||
target_label = "hostname"
|
// target_label = "hostname"
|
||||||
action = "replace"
|
// action = "replace"
|
||||||
replacement = "${__label:hostname_fallback}" // Only if hostname is unset
|
// replacement = "${__label:hostname_fallback}" // Only if hostname is unset
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
loki.write "loki" {
|
loki.write "loki" {
|
||||||
|
|||||||
Reference in New Issue
Block a user