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
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -318,11 +318,26 @@ Following is the supported API format for writing to loki:
318
318
labels: map of record fields to be used as labels
319
319
staticLabels: map of common labels to set on each flow
320
320
ignoreList: map of record fields to be removed from the record
321
-
clientConfig: clientConfig
321
+
clientConfig: HTTP client configuration (used only for HTTP client type)
322
322
timestampLabel: label to use for time indexing
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
331
+
keepAlive: keep alive interval
332
+
keepAliveTimeout: keep alive timeout
333
+
useStreaming: use streaming for real-time log pushing
334
+
tls: TLS configuration
335
+
enabled: enable TLS
336
+
certFile: path to client certificate file
337
+
keyFile: path to client key file
338
+
caFile: path to CA certificate file
339
+
serverName: server name for certificate verification
ClientConfig*promConfig.HTTPClientConfig`yaml:"clientConfig,omitempty" json:"clientConfig,omitempty" doc:"HTTP client configuration (used only for HTTP client type)"`
41
42
TimestampLabel model.LabelName`yaml:"timestampLabel,omitempty" json:"timestampLabel,omitempty" doc:"label to use for time indexing"`
42
43
// TimestampScale provides the scale in time of the units from the timestamp
43
44
// E.g. UNIX timescale is '1s' (one second) while other clock sources might have
@@ -46,6 +47,29 @@ type WriteLoki struct {
46
47
TimestampScalestring`yaml:"timestampScale,omitempty" json:"timestampScale,omitempty" doc:"timestamp units scale (e.g. for UNIX = 1s)"`
47
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)"`
0 commit comments