Class Config
java.lang.Object
io.kubfly.sdk.collector.loki.Config
The configuration of the collector of Loki, taken once from
Config.VARS. The collector
decides by these alone, never by the other collectors.-
Field Summary
FieldsModifier and TypeFieldDescriptionThe most lines of a push.The most bytes of a push.static final StringThe most bytes of lines of one push (KUBFLY_COLLECTOR_LOKI_BATCH_BYTES, 1 MiB).static final StringThe most lines of one push (KUBFLY_COLLECTOR_LOKI_BATCH, 1000).The PEM file of the trusted certificates;Nonefor those of the JDK.static final StringThe certificates trusted forhttps(KUBFLY_COLLECTOR_LOKI_CERTIFICATE): a PEM file.static final intThe default batch.static final intThe default bytes of a batch.static final intThe default delay, milliseconds.static final intThe default queue.static final intThe default repetitions.static final intThe default wait for a push, milliseconds.The longest wait of a line, milliseconds.static final StringThe longest wait of a line for its push (KUBFLY_COLLECTOR_LOKI_DELAY, milliseconds, 1000).static final intThe wait for the last lines when the process finishes, milliseconds.Whether the frames are lines.static final StringThe frames as lines (KUBFLY_COLLECTOR_LOKI_FRAMES):OFF(by default: traces go to Tempo) orON.The headers of every push: tenant, authorization, more.static final StringMore headers (KUBFLY_COLLECTOR_LOKI_HEADERS):key=value,key=value, URL-encoded.More labels.static final StringMore labels of every stream (KUBFLY_COLLECTOR_LOKI_LABELS):env=prod,cluster=east— of low cardinality.The lowest level of the events sent.static final StringThe lowest level of the events sent (KUBFLY_COLLECTOR_LOKI_LEVEL,INFO).Whether the collector is on.static final StringThe switch (KUBFLY_COLLECTOR_LOKI):AUTO(by default) — on when the URL is set;ON;OFF.Whether the identifiers are structured metadata.static final StringStructured 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.More headers, as set (KUBFLY_COLLECTOR_LOKI_HEADERS): a secret parameter.The password of the basic authentication (KUBFLY_COLLECTOR_LOKI_PASSWORD): a secret parameter.static final StringThe password of the basic authentication (KUBFLY_COLLECTOR_LOKI_PASSWORD).Wrong values that fell back to their defaults: sent as warnings once the collector is on.static final StringThe path of the push.The most lines waiting.static final StringThe most lines waiting to be sent (KUBFLY_COLLECTOR_LOKI_QUEUE, 10 000); beyond, lines are lost.The repetitions of a push.static final StringThe repetitions of a push Loki could not take now (KUBFLY_COLLECTOR_LOKI_RETRIES, 3).The tenant (KUBFLY_COLLECTOR_LOKI_TENANT).static final StringThe tenant (KUBFLY_COLLECTOR_LOKI_TENANT): the headerX-Scope-OrgIDof a Loki with several.The wait for a push, milliseconds.static final StringThe wait for one push (KUBFLY_COLLECTOR_LOKI_TIMEOUT, milliseconds, 10 000).The bearer token (KUBFLY_COLLECTOR_LOKI_TOKEN): a secret parameter.static final StringThe bearer token (KUBFLY_COLLECTOR_LOKI_TOKEN), instead of the basic authentication.The URL of the push;None— off.static final StringLoki (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.The user of the basic authentication (KUBFLY_COLLECTOR_LOKI_USER).static final StringThe user of the basic authentication (KUBFLY_COLLECTOR_LOKI_USER); Grafana Cloud — the number of the stack. -
Method Summary
-
Field Details
-
LOKI_VARIABLE
The switch (KUBFLY_COLLECTOR_LOKI):AUTO(by default) — on when the URL is set;ON;OFF.- See Also:
-
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
The tenant (KUBFLY_COLLECTOR_LOKI_TENANT): the headerX-Scope-OrgIDof a Loki with several.- See Also:
-
USER_VARIABLE
The user of the basic authentication (KUBFLY_COLLECTOR_LOKI_USER); Grafana Cloud — the number of the stack.- See Also:
-
PASSWORD_VARIABLE
The password of the basic authentication (KUBFLY_COLLECTOR_LOKI_PASSWORD).- See Also:
-
TOKEN_VARIABLE
The bearer token (KUBFLY_COLLECTOR_LOKI_TOKEN), instead of the basic authentication.- See Also:
-
HEADERS_VARIABLE
More headers (KUBFLY_COLLECTOR_LOKI_HEADERS):key=value,key=value, URL-encoded.- See Also:
-
CERTIFICATE_VARIABLE
The certificates trusted forhttps(KUBFLY_COLLECTOR_LOKI_CERTIFICATE): a PEM file.- See Also:
-
LABELS_VARIABLE
More labels of every stream (KUBFLY_COLLECTOR_LOKI_LABELS):env=prod,cluster=east— of low cardinality.- See Also:
-
LEVEL_VARIABLE
The lowest level of the events sent (KUBFLY_COLLECTOR_LOKI_LEVEL,INFO).- See Also:
-
FRAMES_VARIABLE
The frames as lines (KUBFLY_COLLECTOR_LOKI_FRAMES):OFF(by default: traces go to Tempo) orON.- See Also:
-
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
The most lines waiting to be sent (KUBFLY_COLLECTOR_LOKI_QUEUE, 10 000); beyond, lines are lost.- See Also:
-
BATCH_VARIABLE
The most lines of one push (KUBFLY_COLLECTOR_LOKI_BATCH, 1000).- See Also:
-
BATCH_BYTES_VARIABLE
The most bytes of lines of one push (KUBFLY_COLLECTOR_LOKI_BATCH_BYTES, 1 MiB).- See Also:
-
DELAY_VARIABLE
The longest wait of a line for its push (KUBFLY_COLLECTOR_LOKI_DELAY, milliseconds, 1000).- See Also:
-
TIMEOUT_VARIABLE
The wait for one push (KUBFLY_COLLECTOR_LOKI_TIMEOUT, milliseconds, 10 000).- See Also:
-
RETRIES_VARIABLE
The repetitions of a push Loki could not take now (KUBFLY_COLLECTOR_LOKI_RETRIES, 3).- See Also:
-
PUSH_PATH
-
DEFAULT_QUEUE
public static final int DEFAULT_QUEUEThe default queue.- See Also:
-
DEFAULT_BATCH
public static final int DEFAULT_BATCHThe default batch.- See Also:
-
DEFAULT_BATCH_BYTES
public static final int DEFAULT_BATCH_BYTESThe default bytes of a batch.- See Also:
-
DEFAULT_DELAY
public static final int DEFAULT_DELAYThe default delay, milliseconds.- See Also:
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUTThe default wait for a push, milliseconds.- See Also:
-
DEFAULT_RETRIES
public static final int DEFAULT_RETRIESThe default repetitions.- See Also:
-
FINISH_WAIT
public static final int FINISH_WAITThe wait for the last lines when the process finishes, milliseconds.- See Also:
-
LOKI
-
URL
-
HEADERS
-
TENANT
-
USER
-
PASSWORD
-
TOKEN
-
MORE_HEADERS
-
CERTIFICATE
-
LABELS
-
LEVEL
-
FRAMES
-
METADATA
-
QUEUE
-
BATCH
-
BATCH_BYTES
-
DELAY
-
TIMEOUT
-
RETRIES
-
PROBLEMS
-