chore: Add labeldrop for Loki
This commit is contained in:
parent
8c75b869f1
commit
bdeec6d819
2 changed files with 10 additions and 0 deletions
|
|
@ -313,6 +313,11 @@ data:
|
|||
target_label = "__path__"
|
||||
replacement = "/var/log/pods/*$1/*.log"
|
||||
}
|
||||
|
||||
rule {
|
||||
regex = "pod_template_hash|controller_revision_hash|deployment_kubernetes_io_revision"
|
||||
action = "labeldrop"
|
||||
}
|
||||
}
|
||||
|
||||
local.file_match "pod_logs" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue