chore(alloy): Fix syntax
This commit is contained in:
parent
70f2c559da
commit
4b22ea80ad
1 changed files with 19 additions and 4 deletions
|
|
@ -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]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue