Applies defaults, validates (throws ConfigError) and freezes.
Optional ReadonlyallowedConfigured cardinality guard allowlist (undefined = DEFAULT_ALLOWED_LABELS).
Optional ReadonlybearerBearer token.
ReadonlyconnectReadonlydisableWhether push skips the cardinality guard.
ReadonlyheadersOptional ReadonlyhooksOptional ReadonlyloggerReadonlymultiWhether tenant ids joined with | are allowed.
Optional ReadonlypasswordBasic-auth password.
Optional ReadonlyproxyReadonlyrequestReadonlyretryOptional ReadonlytenantTenant (X-Scope-OrgID); not sent when unset.
ReadonlytlsReadonlytotalReadonlyurlOptional ReadonlyuserOptional ReadonlyusernameBasic-auth user.
Static ReadonlyDEFAULT_Default endpoint.
Static ReadonlyENV_Prefix of every environment variable.
The Authorization header value, when credentials are configured.
Credential values to redact from error messages and logs.
Debug form with every credential redacted.
Returns a string representation of an object.
Throws ConfigError when a setting is invalid.
A copy of this config with some fields replaced (validated again).
StaticfromReturns options when it already is a config, otherwise builds one.
StaticfromBuilds a config from the environment. Precedence: explicit overrides >
GROW_GRAFANA_LOKI_<NAME> > vendor variables (VENDOR_ENV) > defaults.
Immutable configuration of LokiClient.