OTLP数据
简介
service_otlp
input
插件实现了ServiceInputV1
和ServiceInputV2
接口,可以接受Opentelemetry log/metric/trace protocol
的http/gRPC请求,并且转换输出SLSProto或PipelineGroupEvents。目前尚不支持otlp trace转换到SLSProto。
版本
配置参数
Type
String
是
插件类型, 固定为service_otlp
。
Protocals
Struct
是
接收的协议
Protocals.GRPC
Struct
否
是否启用gRPC Server
Protocals.GRPC.Endpoint
string
否
gRPC Server 地址。
默认取值为:0.0.0.0:4317
。
Protocals.GRPC.MaxRecvMsgSizeMiB
int
否
gRPC Server 最大接受Msg大小。
Protocals.GRPC.MaxConcurrentStreams
int
否
gRPC Server 最大并发流。
Protocals.GRPC.ReadBufferSize
int
否
gRPC Server读缓存大小。
Protocals.GRPC.WriteBufferSize
int
否
gRPC Server写缓存大小。
Protocals.GRPC.Compression
string
否
gRPC Server压缩算法,可以用gzip。
Protocals.GRPC.Decompression
string
否
gRPC Server解压算法,可以用gzip。
Protocals.GRPC.TLSConfig
Struct
否
gRPC Server TLS CONFIG配置。
Protocals.HTTP
Struct
否
是否启用HTTP Server
Protocals.HTTP.Endpoint
string
否
HTTP Server 地址。
默认取值为:0.0.0.0:4318
。
Protocals.HTTP.MaxRecvMsgSizeMiB
int
否
HTTP Server 最大接受Msg大小。
默认取值为:64(MiB)
。
Protocals.HTTP.ReadTimeoutSec
int
否
HTTP 请求读取超时时间。
默认取值为:10s
。
Protocals.HTTP.ShutdownTimeoutSec
int
否
HTTP Server关闭超时时间。
默认取值为:5s
。
样例
只接收gRPC请求。
接收http/gRPC请求,使用默认otlp的默认端口。gRPC:4317,HTTP:4318.
完整配置
Last updated