Uses of Class
codes.grow.packages.loki.LokiConfig.Builder
Packages that use LokiConfig.Builder
-
Uses of LokiConfig.Builder in codes.grow.packages.loki
Methods in codes.grow.packages.loki that return LokiConfig.BuilderModifier and TypeMethodDescriptionLokiConfig.Builder.allowedLabels(List<String> names) Sets the cardinality guard allowlist (label names that may become index labels; everything else goes to structured metadata).LokiConfig.Builder.bearerToken(Secret token) Sets the Bearer token sent to a gateway (Authorization: Bearer …).LokiConfig.Builder.bearerToken(String token) Sets the Bearer token.static LokiConfig.BuilderLokiConfig.builder()Starts an empty builder (every field at its default).LokiConfig.Builder.connectTimeout(Duration d) Sets the connect timeout (default 10 s).LokiConfig.Builder.disableLabelGuard(boolean disable) Sends every label ofLokiClient.push(java.util.List<codes.grow.packages.loki.LokiStream>)streams as an index label (the guard is still applied by the log exporter).Fills every field that was not set explicitly from the environment.Adds a header sent with every request (and the tail handshake).Sets request hooks.Sets the logger (default silent).LokiConfig.Builder.multiTenantQueries(boolean allow) Allows tenant ids joined with|(Loki's multi-tenant query syntax; the server must enablemulti_tenant_queries_enabled).Sets the Basic-auth password (or Grafana Cloud access token).Sets the Basic-auth password.Sets an explicit proxy URL; environment proxies (HTTPS_PROXY) are never used.LokiConfig.Builder.requestTimeout(Duration d) Sets the per-attempt timeout (default 30 s).LokiConfig.Builder.retry(RetryPolicy retry) Sets the retry policy (defaultRetryPolicy.defaults()).Sets the tenant sent asX-Scope-OrgIDon every request and tail handshake.LokiConfig.Builder.tls(TlsOptions tls) Sets the TLS options; environment TLS variables are then ignored.LokiConfig.toBuilder()Starts a builder holding every field of this configuration.LokiConfig.Builder.totalTimeout(Duration d) Sets the total timeout per call including retries (default 120 s).Sets the endpoint base URL (defaulthttp://127.0.0.1:3100).LokiConfig.Builder.userAgentSuffix(String suffix) Sets the text appended to theUser-Agent.Sets the Basic-auth user (gateways, Grafana Cloud instance id).