full cycle hostname label
This commit is contained in:
@@ -22,8 +22,8 @@ loki.relabel "add_labels" {
|
|||||||
|
|
||||||
rule {
|
rule {
|
||||||
action = "replace"
|
action = "replace"
|
||||||
source_labels = ["__hostname__"]
|
|
||||||
target_label = "hostname"
|
target_label = "hostname"
|
||||||
|
replacement = "${constants.hostname}"
|
||||||
}
|
}
|
||||||
rule {
|
rule {
|
||||||
action = "replace"
|
action = "replace"
|
||||||
|
|||||||
Reference in New Issue
Block a user