"#" are not allowed in config.alloy in values.yaml
This commit is contained in:
parent
8f62875529
commit
1682302b69
1 changed files with 0 additions and 4 deletions
|
@ -43,11 +43,9 @@ alloy:
|
|||
role = "ingress"
|
||||
}
|
||||
|
||||
# Process and label logs before sending to Loki
|
||||
discovery.relabel "pod_logs" {
|
||||
targets = discovery.kubernetes.pod.targets
|
||||
|
||||
# Assign labels for logs
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_namespace"]
|
||||
action = "replace"
|
||||
|
@ -75,13 +73,11 @@ alloy:
|
|||
}
|
||||
}
|
||||
|
||||
# Collect logs from Kubernetes API
|
||||
loki.source.kubernetes "all_pod_logs" {
|
||||
targets = discovery.relabel.pod_logs.output
|
||||
forward_to = [loki.process.all_logs.receiver]
|
||||
}
|
||||
|
||||
# Process logs before writing
|
||||
loki.process "all_logs" {
|
||||
stage.static_labels {
|
||||
values = {
|
||||
|
|
Loading…
Reference in a new issue