Package codes.grow.packages.loki
Class LokiLogClientOptions
java.lang.Object
codes.grow.packages.loki.LokiLogClientOptions
Options of
LokiClient.logClient(LokiLogClientOptions).-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the cardinality guard allowlist override.Returns the batch options.static LokiLogClientOptions.Builderbuilder()Starts a builder.static LokiLogClientOptionsdefaults()Default options: JSON push, default batching and redaction, no resource.protocol()Returns the protocol.Returns the redaction processor.resource()Returns the resource added to every record (service.name, …).
-
Method Details
-
defaults
Default options: JSON push, default batching and redaction, no resource.- Returns:
- the options
-
builder
Starts a builder.- Returns:
- a new builder
-
protocol
Returns the protocol.- Returns:
- the protocol
-
batchOptions
Returns the batch options.- Returns:
- the options
-
resource
Returns the resource added to every record (service.name, …).- Returns:
- immutable map
-
redaction
Returns the redaction processor.- Returns:
- the processor, or
nullwhen redaction is disabled
-
allowedLabels
Returns the cardinality guard allowlist override.- Returns:
- the list, or empty to use
LokiConfig.allowedLabels()
-