Pre povolenie posielania telemetrických dát z D2000 do existujúcej OpenTelemetry infraštruktúry stačí nastaviť tieto premenné prostredia (environment variables):
OTEL_EXPORTER_OTLP_ENDPOINT
URL endpointu (typicky OTel collector-a), kam budú z D2000 zasielané OTel dáta.
OTEL_EXPORTER_OTLP_PROTOCOL
Typ protokolu dát. Prípustné hodnoty sú:
grpc
http/protobuf
http/json
príklad 1 (protokol http/json):
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
OTEL_EXPORTER_OTLP_PROTOCOL=http/json
príklad 2 (protokol grpc):
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
OTEL_EXPORTER_OTLP_PROTOCOL=grpc
0 komentárov