add hostname label
This commit is contained in:
@@ -30,6 +30,11 @@ loki.relabel "add_labels" {
|
|||||||
target_label = "hostname"
|
target_label = "hostname"
|
||||||
replacement = "${env.HOSTNAME}"
|
replacement = "${env.HOSTNAME}"
|
||||||
}
|
}
|
||||||
|
rule {
|
||||||
|
action = "replace"
|
||||||
|
source_label = "${env.HOSTNAME}"
|
||||||
|
target_label = "hostname"
|
||||||
|
}
|
||||||
rule {
|
rule {
|
||||||
action = "replace"
|
action = "replace"
|
||||||
target_label = "job"
|
target_label = "job"
|
||||||
|
|||||||
Reference in New Issue
Block a user