I am trying to instrument a metric data to kafka via otel in json format. But the data is written in otlp format in kafka topic. Any inputs please?
receivers:
otlp:
protocols:
grpc:
http:
exporters:
logging:
kafka/metrics:
protocol_version: 2.0.0
topic: otlp.metrics
brokers:
- localhost:9092
encoding: otlp_proto
connectors:
spanmetrics:
service:
pipelines:
metrics:
receivers: [otlp, http]
processors: [filter, batch]
exporters: [kafka/metrics]