Files
mtusi2026lab7/infra/otel/README.md
T
Vladislav Kunetskiy 1b6e96ccc0
Application / Go invariants and static checks (pull_request) Canceled after 0s
Application / Lab7 verified TLS and retained features (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
lab7: безопасность, mTLS, OpenBao и PKI lifecycle
2026-11-10 14:39:57 +03:00

25 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# OTel Collector
`collector.yaml` сохраняет traces/metrics/logs pipelines. API/worker/relay шлют
OTLP HTTP через mTLS gateway `otel-collector:4318`: только authenticated CN
`api`, `worker`, `relay` и POST `/v1/traces`, `/v1/metrics`, `/v1/logs`.
Native receiver — `127.0.0.1:14318`; отдельного gRPC receiver нет.
Collector экспортирует:
- метрики — loopback pull-exporter `18889`, через mTLS gateway `:8889`;
- логи — HTTPS/mTLS в `https://loki:3100/otlp` (итоговый `/otlp/v1/logs`);
- трассы — GRPCS/mTLS в `tempo:4437`, где допускается только CN `collector`.
Exporters используют own identity `current/{ca.crt,tls.crt,tls.key}` в readonly
`/run/identity`. Проверка CA/hostname не отключается. Native self-metrics —
`127.0.0.1:18888`, health — `127.0.0.1:13133`; mTLS gateways — `:8888`
(GET `/metrics`) и `:13134` (GET `/`), только CN `prometheus`/`operator`.
Native plaintext endpoints не публикуются и недоступны соседним namespaces.
`memory_limiter` — 140 MiB, batch — 5 с/1024. Loki/Tempo очереди ограничены
10 MiB (`sizer: bytes`), retry не дольше 30 с; отказ телеметрии не должен
блокировать business readiness. Gateway ACL/TLS config находятся в
`../telemetry-gateway/collector.cfg`; namespace mounts/restarts и lifecycle
trust consumers выполняет operator orchestration. Конфигурация не заменяет
live проверки доставки трёх signals, wrong-CN rejection и revocation.