Kafka Forwarding (via OTel)
Step 1: Prepare the Cloud Kafka Cluster
Step 2: Configure the OpenTelemetry Collector
receivers:
otlp:
protocols:
grpc:
endpoint: "0.0.0.0:4317" # Apica Flow will target this
processors:
batch:
send_batch_size: 1000
timeout: 10s
resourcedetection: # Optional: Adds infrastructure context
detectors: ["env", "system"]
exporters:
kafka:
brokers: ["${KAFKA_BOOTSTRAP_SERVER}"]
topic: "telemetry.logs.unified"
auth:
sasl:
username: "${KAFKA_API_KEY}"
password: "${KAFKA_API_SECRET}"
mechanism: "PLAIN"
tls:
insecure: false # Required for Cloud Kafka
encoding: otlp_json # Standard structured format
service:
pipelines:
logs:
receivers: [otlp]
processors: [batch, resourcedetection]
exporters: [kafka]Step 3: Configure Apica Flow (The Producer)
Step 4: Verification and Data Flow Validation
Technical Advantages of this Approach
Common Implementation Tip
Last updated
Was this helpful?