videogen/infra/k8s/addons/otel-collector.yaml
caelum0x d56639a594
Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

96 lines
3.0 KiB
YAML

# OpenTelemetry Collector (DaemonSet) — the observability plane's ingest edge.
# Receives OTLP from the API/workers, tail-samples traces, and exports
# metrics→Prometheus, logs→Loki, traces→Tempo, errors→Sentry (endpoints from the
# reelforge-obs secret). SLO/alert rules live in infra/observability/slo.yaml and
# are provisioned by the observability Terraform module.
apiVersion: v1
kind: ConfigMap
metadata:
name: otel-collector-config
namespace: reelforge
data:
config.yaml: |
receivers:
otlp:
protocols:
grpc: { endpoint: 0.0.0.0:4317 }
http: { endpoint: 0.0.0.0:4318 }
processors:
batch: { timeout: 5s, send_batch_size: 1024 }
memory_limiter: { check_interval: 1s, limit_percentage: 80, spike_limit_percentage: 25 }
# Keep all error/slow traces; sample the rest to control cost.
tail_sampling:
decision_wait: 10s
policies:
- name: errors
type: status_code
status_code: { status_codes: [ERROR] }
- name: slow
type: latency
latency: { threshold_ms: 2000 }
- name: sample-rest
type: probabilistic
probabilistic: { sampling_percentage: 10 }
resourcedetection: { detectors: [env, system], timeout: 2s }
exporters:
prometheus: { endpoint: 0.0.0.0:8889 }
otlphttp/tempo: { endpoint: ${TEMPO_ENDPOINT} }
loki: { endpoint: ${LOKI_ENDPOINT} }
service:
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, tail_sampling, resourcedetection, batch]
exporters: [otlphttp/tempo]
metrics:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [prometheus]
logs:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [loki]
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: otel-collector
namespace: reelforge
labels: { app: otel-collector }
spec:
selector:
matchLabels: { app: otel-collector }
template:
metadata:
labels: { app: otel-collector }
spec:
containers:
- name: collector
image: otel/opentelemetry-collector-contrib:0.104.0
args: ["--config=/conf/config.yaml"]
ports:
- { containerPort: 4317, name: otlp-grpc }
- { containerPort: 4318, name: otlp-http }
- { containerPort: 8889, name: prom }
envFrom:
- secretRef: { name: reelforge-obs }
volumeMounts:
- { name: config, mountPath: /conf }
resources:
requests: { cpu: "100m", memory: "256Mi" }
limits: { cpu: "500m", memory: "512Mi" }
volumes:
- name: config
configMap: { name: otel-collector-config }
---
apiVersion: v1
kind: Service
metadata:
name: otel-collector
namespace: reelforge
spec:
selector: { app: otel-collector }
ports:
- { name: otlp-grpc, port: 4317, targetPort: otlp-grpc }
- { name: otlp-http, port: 4318, targetPort: otlp-http }