chore: Add labeldrop for Loki

This commit is contained in:
Peter 2026-04-24 15:06:24 +02:00
parent 8c75b869f1
commit bdeec6d819
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg
2 changed files with 10 additions and 0 deletions

View file

@ -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" {