forked from mtusi2026/mtusi2026lab7
25 lines
1.7 KiB
Markdown
25 lines
1.7 KiB
Markdown
# 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.
|