Class Config

java.lang.Object
io.kubfly.sdk.collector.loki.Config

public final class Config extends Object
The configuration of the collector of Loki, taken once from Config.VARS. The collector decides by these alone, never by the other collectors.
  • Field Details

    • LOKI_VARIABLE

      public static final String LOKI_VARIABLE
      The switch (KUBFLY_COLLECTOR_LOKI): AUTO (by default) — on when the URL is set; ON; OFF.
      See Also:
    • URL_VARIABLE

      public static final String URL_VARIABLE
      Loki (KUBFLY_COLLECTOR_LOKI_URL): http://loki:3100 — the push path "/loki/api/v1/push" is added — or the full URL of the push, when it has a path.
      See Also:
    • TENANT_VARIABLE

      public static final String TENANT_VARIABLE
      The tenant (KUBFLY_COLLECTOR_LOKI_TENANT): the header X-Scope-OrgID of a Loki with several.
      See Also:
    • USER_VARIABLE

      public static final String USER_VARIABLE
      The user of the basic authentication (KUBFLY_COLLECTOR_LOKI_USER); Grafana Cloud — the number of the stack.
      See Also:
    • PASSWORD_VARIABLE

      public static final String PASSWORD_VARIABLE
      The password of the basic authentication (KUBFLY_COLLECTOR_LOKI_PASSWORD).
      See Also:
    • TOKEN_VARIABLE

      public static final String TOKEN_VARIABLE
      The bearer token (KUBFLY_COLLECTOR_LOKI_TOKEN), instead of the basic authentication.
      See Also:
    • HEADERS_VARIABLE

      public static final String HEADERS_VARIABLE
      More headers (KUBFLY_COLLECTOR_LOKI_HEADERS): key=value,key=value, URL-encoded.
      See Also:
    • CERTIFICATE_VARIABLE

      public static final String CERTIFICATE_VARIABLE
      The certificates trusted for https (KUBFLY_COLLECTOR_LOKI_CERTIFICATE): a PEM file.
      See Also:
    • LABELS_VARIABLE

      public static final String LABELS_VARIABLE
      More labels of every stream (KUBFLY_COLLECTOR_LOKI_LABELS): env=prod,cluster=east — of low cardinality.
      See Also:
    • LEVEL_VARIABLE

      public static final String LEVEL_VARIABLE
      The lowest level of the events sent (KUBFLY_COLLECTOR_LOKI_LEVEL, INFO).
      See Also:
    • FRAMES_VARIABLE

      public static final String FRAMES_VARIABLE
      The frames as lines (KUBFLY_COLLECTOR_LOKI_FRAMES): OFF (by default: traces go to Tempo) or ON.
      See Also:
    • METADATA_VARIABLE

      public static final String METADATA_VARIABLE
      Structured metadata (KUBFLY_COLLECTOR_LOKI_METADATA): ON (by default, Loki 3) — the trace, the span, the frame, the template beside the line; OFF — in the line, for Loki 2.
      See Also:
    • QUEUE_VARIABLE

      public static final String QUEUE_VARIABLE
      The most lines waiting to be sent (KUBFLY_COLLECTOR_LOKI_QUEUE, 10 000); beyond, lines are lost.
      See Also:
    • BATCH_VARIABLE

      public static final String BATCH_VARIABLE
      The most lines of one push (KUBFLY_COLLECTOR_LOKI_BATCH, 1000).
      See Also:
    • BATCH_BYTES_VARIABLE

      public static final String BATCH_BYTES_VARIABLE
      The most bytes of lines of one push (KUBFLY_COLLECTOR_LOKI_BATCH_BYTES, 1 MiB).
      See Also:
    • DELAY_VARIABLE

      public static final String DELAY_VARIABLE
      The longest wait of a line for its push (KUBFLY_COLLECTOR_LOKI_DELAY, milliseconds, 1000).
      See Also:
    • TIMEOUT_VARIABLE

      public static final String TIMEOUT_VARIABLE
      The wait for one push (KUBFLY_COLLECTOR_LOKI_TIMEOUT, milliseconds, 10 000).
      See Also:
    • RETRIES_VARIABLE

      public static final String RETRIES_VARIABLE
      The repetitions of a push Loki could not take now (KUBFLY_COLLECTOR_LOKI_RETRIES, 3).
      See Also:
    • PUSH_PATH

      public static final String PUSH_PATH
      The path of the push.
      See Also:
    • DEFAULT_QUEUE

      public static final int DEFAULT_QUEUE
      The default queue.
      See Also:
    • DEFAULT_BATCH

      public static final int DEFAULT_BATCH
      The default batch.
      See Also:
    • DEFAULT_BATCH_BYTES

      public static final int DEFAULT_BATCH_BYTES
      The default bytes of a batch.
      See Also:
    • DEFAULT_DELAY

      public static final int DEFAULT_DELAY
      The default delay, milliseconds.
      See Also:
    • DEFAULT_TIMEOUT

      public static final int DEFAULT_TIMEOUT
      The default wait for a push, milliseconds.
      See Also:
    • DEFAULT_RETRIES

      public static final int DEFAULT_RETRIES
      The default repetitions.
      See Also:
    • FINISH_WAIT

      public static final int FINISH_WAIT
      The wait for the last lines when the process finishes, milliseconds.
      See Also:
    • LOKI

      public static final Param<Boolean> LOKI
      Whether the collector is on.
    • URL

      public static final Param<URI> URL
      The URL of the push; None — off.
    • HEADERS

      public static final Map<String,String> HEADERS
      The headers of every push: tenant, authorization, more.
    • TENANT

      public static final Param<String> TENANT
      The tenant (KUBFLY_COLLECTOR_LOKI_TENANT).
    • USER

      public static final Param<String> USER
      The user of the basic authentication (KUBFLY_COLLECTOR_LOKI_USER).
    • PASSWORD

      public static final Param<String> PASSWORD
      The password of the basic authentication (KUBFLY_COLLECTOR_LOKI_PASSWORD): a secret parameter.
    • TOKEN

      public static final Param<String> TOKEN
      The bearer token (KUBFLY_COLLECTOR_LOKI_TOKEN): a secret parameter.
    • MORE_HEADERS

      public static final Param<Map<String,String>> MORE_HEADERS
      More headers, as set (KUBFLY_COLLECTOR_LOKI_HEADERS): a secret parameter.
    • CERTIFICATE

      public static final Param<String> CERTIFICATE
      The PEM file of the trusted certificates; None for those of the JDK.
    • LABELS

      public static final Param<Map<String,String>> LABELS
      More labels.
    • LEVEL

      public static final Param<Level> LEVEL
      The lowest level of the events sent.
    • FRAMES

      public static final Param<Boolean> FRAMES
      Whether the frames are lines.
    • METADATA

      public static final Param<Boolean> METADATA
      Whether the identifiers are structured metadata.
    • QUEUE

      public static final Param<Integer> QUEUE
      The most lines waiting.
    • BATCH

      public static final Param<Integer> BATCH
      The most lines of a push.
    • BATCH_BYTES

      public static final Param<Integer> BATCH_BYTES
      The most bytes of a push.
    • DELAY

      public static final Param<Integer> DELAY
      The longest wait of a line, milliseconds.
    • TIMEOUT

      public static final Param<Integer> TIMEOUT
      The wait for a push, milliseconds.
    • RETRIES

      public static final Param<Integer> RETRIES
      The repetitions of a push.
    • PROBLEMS

      public static final List<String> PROBLEMS
      Wrong values that fell back to their defaults: sent as warnings once the collector is on.