Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-7294

Refactoring collector OTLP output to use Vector 'opentelemetry' sink

XMLWordPrintable

    • Future Sustainability
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • NEW
    • NEW
    • Enhancement
    • Log Collection - Sprint 273, Logging - Sprint 274

      Prerequisite

      Opentelemetry sink expects events conforming to the OTEL format. We need to use Remap to prepare events for ingestion, so we will keep all existing data transformation remap function.

      Required changes

      Update Vector version at least https://vector.dev/releases/0.43.0 (we have ready to go PR for v0.46.1)
      Extend compression format list for Otlp in API with all supported format by Opentelentry sink
      Change Vector configuration generator, sample of config:

      [sinks.output_otel_collector]
      type = "opentelemetry"
      inputs = ["output_otel_collector_resource_logs"]
      protocol.uri = "http://localhost:4318/v1/logs"
      protocol.type = "http"
      protocol.method = "post"
      protocol.encoding.codec = "json"
      protocol.encoding.except_fields = ["_internal"]
      protocol.payload_prefix = "{\"resourceLogs\":"
      protocol.payload_suffix = "}"
      

      Acceptance Criteria

      All tests should pass

              vparfono Vitalii Parfonov
              vparfono Vitalii Parfonov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: