Class LokiLogClientOptions

java.lang.Object
codes.grow.packages.loki.LokiLogClientOptions

public final class LokiLogClientOptions extends Object
  • Method Details

    • defaults

      public static LokiLogClientOptions defaults()
      Default options: JSON push, default batching and redaction, no resource.
      Returns:
      the options
    • builder

      public static LokiLogClientOptions.Builder builder()
      Starts a builder.
      Returns:
      a new builder
    • protocol

      public LogProtocol protocol()
      Returns the protocol.
      Returns:
      the protocol
    • batchOptions

      public BatchOptions batchOptions()
      Returns the batch options.
      Returns:
      the options
    • resource

      public Map<String,Object> resource()
      Returns the resource added to every record (service.name, …).
      Returns:
      immutable map
    • redaction

      public RedactionProcessor redaction()
      Returns the redaction processor.
      Returns:
      the processor, or null when redaction is disabled
    • allowedLabels

      public Optional<List<String>> allowedLabels()
      Returns the cardinality guard allowlist override.
      Returns:
      the list, or empty to use LokiConfig.allowedLabels()