Chrysostomos Nanakos 0c8e28fa46
feat(k8s): add Vector logging infrastructure for benchmarks
Add Vector agent/aggregator deployment for collecting logs from Codex
benchmark experiments in K8s. Includes PVC for log storage, S3 secret
template and RBAC.

Vector collects logs from benchmark pods and writes JSONL files for
post-processing by the log-parsing workflow.

Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
2025-10-21 13:13:49 +03:00

37 lines
923 B
YAML

# Vector configuration for collecting benchmark pod logs
# This ConfigMap contains the Vector pipeline configuration
apiVersion: v1
kind: ConfigMap
metadata:
name: vector-config
namespace: argo
data:
vector.yaml: |
data_dir: /vector-data
sources:
benchmark-experiments-source:
type: kubernetes_logs
extra_label_selector: "app.kubernetes.io/name=codex-benchmarks"
node_annotation_fields:
node_labels: ""
pod_annotation_fields:
container_id: ""
container_image: ""
container_image_id: ""
pod_node_name: ""
pod_owner: ""
pod_uid: ""
pod_ip: ""
pod_ips: ""
glob_minimum_cooldown_ms: 5000
sinks:
output:
type: file
inputs: [benchmark-experiments-source]
path: "/vector-logs/benchmarks-%Y-%m-%d.jsonl"
encoding:
codec: json