@grow-codes/grafana-loki - v0.1.1
    Preparing search index...

    Interface LokiConfigOptions

    Options accepted by LokiConfig (all optional).

    interface LokiConfigOptions {
        allowedLabels?: readonly string[];
        bearerToken?: string | Secret;
        connectTimeoutMs?: number;
        disableLabelGuard?: boolean;
        headers?: Record<string, string>;
        hooks?: Hooks;
        logger?: ClientLogger;
        multiTenantQueries?: boolean;
        password?: string | Secret;
        proxy?: string;
        requestTimeoutMs?: number;
        retry?: RetryPolicyOptions | RetryPolicy;
        tenantId?: string;
        tls?: TlsOptions;
        totalTimeoutMs?: number;
        url?: string;
        userAgentSuffix?: string;
        username?: string;
    }

    Hierarchy (View Summary)

    Index
    allowedLabels?: readonly string[]

    Cardinality guard allowlist used by push and the log exporter: only these label names become index labels, everything else goes to structured metadata. Default DEFAULT_ALLOWED_LABELS.

    bearerToken?: string | Secret

    Bearer token for gateways (env GROW_GRAFANA_LOKI_BEARER_TOKEN, LOKI_BEARER_TOKEN).

    connectTimeoutMs?: number

    Connection setup timeout in ms (default 10 000).

    disableLabelGuard?: boolean

    Sends every stream label of push as an index label (turns the guard off). Default false.

    headers?: Record<string, string>

    Extra request headers.

    hooks?: Hooks

    Request/response hooks.

    logger?: ClientLogger

    Diagnostic logger (silent by default).

    multiTenantQueries?: boolean

    Allows tenant ids joined with | (Loki multi-tenant queries; the server must enable multi_tenant_queries_enabled). Default false.

    password?: string | Secret

    Basic-auth password or access token (env GROW_GRAFANA_LOKI_PASSWORD, LOKI_PASSWORD).

    proxy?: string

    Proxy URL. Environment proxies (HTTPS_PROXY, …) are ignored unless set here.

    requestTimeoutMs?: number

    Per-attempt timeout in ms, headers + body (default 30 000).

    Retry policy or its options.

    tenantId?: string

    Tenant sent as X-Scope-OrgID (env GROW_GRAFANA_LOKI_TENANT_ID, LOKI_TENANT_ID).

    TLS settings.

    totalTimeoutMs?: number

    Whole-call timeout in ms including retries and backoff (default 120 000).

    url?: string

    Endpoint base URL.

    userAgentSuffix?: string

    Appended after the standard User-Agent.

    username?: string

    Basic-auth user for gateways / Grafana Cloud (env GROW_GRAFANA_LOKI_USERNAME, LOKI_USERNAME).