You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -323,11 +323,8 @@ Following is the supported API format for writing to loki:
323
323
timestampScale: timestamp units scale (e.g. for UNIX = 1s)
324
324
format: the format of each line: printf (writes using golang's default map printing), fields (writes one key and value field per line) or json (default)
325
325
reorder: reorder json map keys
326
-
clientType: type of client to use: 'http' or 'grpc' (default: 'http')
327
-
grpcConfig: gRPC client configuration (used only for gRPC client type)
328
-
serverAddress: gRPC server address (host:port)
329
-
maxRecvMsgSize: maximum message size the client can receive
330
-
maxSendMsgSize: maximum message size the client can send
326
+
clientProtocol: type of client protocol to use: 'http' or 'grpc' (default: 'http')
327
+
grpcConfig: gRPC client configuration (used only for gRPC client protocol)
Copy file name to clipboardExpand all lines: pkg/api/write_loki.go
+15-25Lines changed: 15 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -48,15 +48,12 @@ type WriteLoki struct {
48
48
Formatstring`yaml:"format,omitempty" json:"format,omitempty" doc:"the format of each line: printf (writes using golang's default map printing), fields (writes one key and value field per line) or json (default)"`
ClientTypestring`yaml:"clientType,omitempty" json:"clientType,omitempty" doc:"type of client to use: 'http' or 'grpc' (default: 'http')"`
51
+
// Client protocol selection
52
+
ClientProtocolstring`yaml:"clientProtocol,omitempty" json:"clientProtocol,omitempty" doc:"type of client protocol to use: 'http' or 'grpc' (default: 'http')"`
53
53
GRPCConfig*GRPCLokiConfig`yaml:"grpcConfig,omitempty" json:"grpcConfig,omitempty" doc:"gRPC client configuration (used only for gRPC client type)"`
54
54
}
55
55
56
56
typeGRPCLokiConfigstruct {
57
-
ServerAddressstring`yaml:"serverAddress,omitempty" json:"serverAddress,omitempty" doc:"gRPC server address (host:port)"`
58
-
MaxRecvMsgSizeint`yaml:"maxRecvMsgSize,omitempty" json:"maxRecvMsgSize,omitempty" doc:"maximum message size the client can receive"`
59
-
MaxSendMsgSizeint`yaml:"maxSendMsgSize,omitempty" json:"maxSendMsgSize,omitempty" doc:"maximum message size the client can send"`
0 commit comments