Vidíte historickú verziu tejto stránky. Pozrite si aktuálnu verziu.

Porovnať s aktuálnou verziou Zobraziť históriu stránky

Verzia 1 Ďalej »

Tento návod popisuje inštaláciu a konfiguráciu jednotlivých OTel komponentov vo forme samostatných procesov pre OS Windows. Sprevádzkovanie OTel stack-u na platforme docker nie je predmetom tohto návodu.


Inštalácia opentelemetry-collector:

  1. Zo stránky https://github.com/open-telemetry/opentelemetry-collector-releases/releases/ stiahneme súbor otelcol_<verzia>_windows_amd64.tar.gz
  2. Súbor rozbalíme do zvoleného adresára, napr. c:\otel\
  3. V adresári vytvoríme konfiguračný súbor otel-config.yaml s nasl. obsahom:
    otel-config.yaml
    extensions:
      zpages:
        endpoint: localhost:55679
    
    receivers:
      otlp:
        protocols:
          grpc:
            endpoint: localhost:4317
          http:
            endpoint: localhost:4318
    
    processors:
      batch:
      memory_limiter:
        # 75% of maximum memory up to 2G
        limit_mib: 1536
        # 25% of limit up to 2G
        spike_limit_mib: 512
        check_interval: 5s
    
    exporters:
      debug:
        verbosity: detailed
      otlphttp/loki:
        endpoint: http://localhost:3100/otlp
      otlphttp/tempo:
        endpoint: http://localhost:4317/otlp
      otlphttp/prometheus:
        endpoint: http://localhost:9090/api/v1/otlp
    
    service:
      pipelines:
        traces:
          receivers: [otlp]
          processors: [memory_limiter, batch]
          exporters: [debug, otlphttp/tempo]
        metrics:
          receivers: [otlp]
          processors: [memory_limiter, batch]
          exporters: [debug, otlphttp/prometheus]
        logs:
          receivers: [otlp]
          processors: [memory_limiter, batch]
          exporters: [debug, otlphttp/loki]
    
      extensions: [zpages]

Spustenie opentelemetry-collector vykonáme príkazom otelcol.exe --config=otel-config.yaml v adresári c:\otel\



  • Žiadne štítky