chore(alloy): Fix syntax

This commit is contained in:
Peter 2026-01-20 22:17:23 +01:00
parent 70f2c559da
commit 4b22ea80ad
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg

View file

@ -8,15 +8,30 @@ data:
prometheus.exporter.unix "node" {}
prometheus.relabel "cadvisor_minimal" {
rule { action = "keep" source_labels = ["__name__"] regex = "container_cpu_usage_seconds_total|container_memory_working_set_bytes" }
rule {
action = "keep"
source_labels = ["__name__"]
regex = "container_cpu_usage_seconds_total|container_memory_working_set_bytes"
}
forward_to = [prometheus.relabel.global_filter.receiver]
}
prometheus.relabel "global_filter" {
rule { action = "drop" source_labels = ["__name__"] regex = "go_.*|process_.*" }
rule { action = "drop" source_labels = ["__name__"] regex = "kube_.*_labels|kube_.*_annotations" }
rule { action = "labeldrop" regex = "pod_uid|container_id|image_id|container_hash|endpoint|id" }
rule {
action = "drop"
source_labels = ["__name__"]
regex = "go_.*|process_.*"
}
rule {
action = "drop"
source_labels = ["__name__"]
regex = "kube_.*_labels|kube_.*_annotations"
}
rule {
action = "labeldrop"
regex = "pod_uid|container_id|image_id|container_hash|endpoint|id"
}
forward_to = [prometheus.remote_write.default.receiver]
}