71b8595742
ZbOtelCollector (otelcol-contrib 0.162.0, NSSM, NT SERVICE\ZbOtelCollector, every listener on 127.0.0.1, file + Prometheus exporters, size-capped rotation) on DEV vd03 and QA vq03/vq04. OtOpcUa, ScadaBridge Central + Site, MxAccessGateway and HistorianGateway export OTLP to http://127.0.0.1:4317 via two service-env entries each; rolling restarts, standby-first on the QA pairs. Overview has no exporter binding and is unchanged. Config, install/switch/verify scripts, runbook and the dated rollout record under infra/otel-collector/wonder/; evidence doc, GAPS, index row and deployment.md updated. Claude-Session: https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
81 lines
2.6 KiB
YAML
81 lines
2.6 KiB
YAML
# ZbOtelCollector: per-box OpenTelemetry collector for the wonder tiers (scadaproj#54).
|
|
# One instance on each of wonder-app-vd03 (DEV), wonder-app-vq03 and wonder-app-vq04 (QA),
|
|
# installed at E:\ApiInstall\OtelCollector as the NSSM service ZbOtelCollector.
|
|
#
|
|
# Every listener binds 127.0.0.1 only: the apps on the same box export to http://127.0.0.1:4317,
|
|
# and nothing is reachable from the network. That is why the receivers have no auth and no TLS.
|
|
# Do not change a bind address to 0.0.0.0 without adding auth + TLS first (see README.md).
|
|
#
|
|
# ZB_TIER (DEV | QA) is set in the service environment and stamped on every signal as
|
|
# deployment.environment.name, so files copied off two tiers can still be told apart.
|
|
#
|
|
# Retention: each file exporter rotates at 100 MB, keeps 5 backups and drops backups older
|
|
# than 7 days, so each signal is capped at about 600 MB and the three together at about 1.8 GB.
|
|
|
|
extensions:
|
|
health_check:
|
|
endpoint: 127.0.0.1:13133
|
|
|
|
receivers:
|
|
otlp:
|
|
protocols:
|
|
grpc:
|
|
endpoint: 127.0.0.1:4317
|
|
http:
|
|
endpoint: 127.0.0.1:4318
|
|
|
|
processors:
|
|
memory_limiter:
|
|
check_interval: 5s
|
|
limit_mib: 256
|
|
spike_limit_mib: 64
|
|
resource/tier:
|
|
attributes:
|
|
- key: deployment.environment.name
|
|
value: ${env:ZB_TIER}
|
|
action: upsert
|
|
batch: {}
|
|
|
|
exporters:
|
|
file/metrics:
|
|
path: E:/ApiInstall/OtelCollector/data/metrics.jsonl
|
|
rotation: { max_megabytes: 100, max_days: 7, max_backups: 5 }
|
|
file/traces:
|
|
path: E:/ApiInstall/OtelCollector/data/traces.jsonl
|
|
rotation: { max_megabytes: 100, max_days: 7, max_backups: 5 }
|
|
file/logs:
|
|
path: E:/ApiInstall/OtelCollector/data/logs.jsonl
|
|
rotation: { max_megabytes: 100, max_days: 7, max_backups: 5 }
|
|
prometheus:
|
|
endpoint: 127.0.0.1:8889
|
|
resource_constant_labels:
|
|
included: [service.name, service.namespace, service.instance.id, site.id, node.role, host.name, deployment.environment.name]
|
|
metric_expiration: 15m
|
|
|
|
service:
|
|
extensions: [health_check]
|
|
telemetry:
|
|
logs:
|
|
level: info
|
|
metrics:
|
|
level: basic
|
|
readers:
|
|
- pull:
|
|
exporter:
|
|
prometheus:
|
|
host: 127.0.0.1
|
|
port: 8888
|
|
pipelines:
|
|
metrics:
|
|
receivers: [otlp]
|
|
processors: [memory_limiter, resource/tier, batch]
|
|
exporters: [file/metrics, prometheus]
|
|
traces:
|
|
receivers: [otlp]
|
|
processors: [memory_limiter, resource/tier, batch]
|
|
exporters: [file/traces]
|
|
logs:
|
|
receivers: [otlp]
|
|
processors: [memory_limiter, resource/tier, batch]
|
|
exporters: [file/logs]
|