add hostname label
This commit is contained in:
@@ -33,6 +33,11 @@ loki.relabel "add_labels" {
|
|||||||
source_labels = ["__host__"] // Internal hostname from constants.hostname
|
source_labels = ["__host__"] // Internal hostname from constants.hostname
|
||||||
target_label = "hostname"
|
target_label = "hostname"
|
||||||
}
|
}
|
||||||
|
rule {
|
||||||
|
action = "replace"
|
||||||
|
target_label = "hostname"
|
||||||
|
replacement = "fqdn"
|
||||||
|
}
|
||||||
rule {
|
rule {
|
||||||
action = "replace"
|
action = "replace"
|
||||||
target_label = "job"
|
target_label = "job"
|
||||||
|
|||||||
Reference in New Issue
Block a user