Grafana Loki destination plugin

Grafana Loki is a horizontally scalable, highly available, multi-tenant log aggregation system inspired by Prometheus. It allows you to store and query logs using labels to filter and aggregate log data, helping you explore and visualize your logs in Grafana. The Grafana Loki Destination Plugin in Calyptia Core allows you to seamlessly integrate your telemetry data with Grafana Loki, enabling you to store, analyze, and visualize your log data using Grafana. With the Grafana Loki destination plugin, you can configure your Calyptia Core pipeline to send your log data to Grafana Loki,

Configuration parameters

The Grafana Loki destination plugin provides these configuration parameters.

General

KeyDescription
HostLoki hostname or IP address. Do not include the sub path, such as loki/api/v1/push. Include only the base hostname / URL.
PortTCP port of the target Loki service.

Basic authentication

KeyDescription
HTTP UsernameBasic Auth Username.
HTTP PasswordBasic Auth Password. Requires HTTP_User to be set.

Advanced

KeyDescription
Tenant IDTenant ID used by default to push logs to Loki. If omitted or empty it assumes Loki is running in single-tenant mode and no X-Scope-OrgID header is sent.
Tenant ID KeyIf set, X-Scope-OrgID will be the value of the key from incoming record. It is useful to set X-Scode-OrgID dynamically.
Labelslabels for API requests, If no value is set the default label is job=fluent-bit.
Label KeysComma-separated list of keys to use as stream labels.
Enable Auto Kubernetes LabelsIf set to true, it will add all Kubernetes labels to Loki labels.
Drop Single KeyIf set to true and only a single key remains, the log line sent to Loki will be the value of that key.
Remove KeysComma separated list of keys to remove.
Line FormatFormat to use when flattening the record to a log line. Valid values are json or key_value. If set to jso the log line sent to Loki will be the Fluent Bit record dumped as JSON. If set to key_value, the log line will be each item in the record concatenated together (separated by a single space) in the format =.

Security and TLS

KeyDescription
TLSEnable or disable TLS/SSL support.
TLS Certificate ValidationTurn TLS/SSL certificate validation on or off. TLS must be on for this setting to be enabled.
TLS Debug LevelSet TLS debug verbosity level. Accepts these values: 0 (No debug), 1 (Error), 2 (State change), 3 (Informational), 4 (Verbose).
CA Certificate File PathAbsolute path to CA certificate file.
Certificate File PathAbsolute path to certificate file.
Private key File PathAbsolute path to private key file.
Private Key Path PasswordOptional password for tls.key_file file.
TLS SNI Hostname ExtensionHostname to be used for TLS SNI extension.

Advanced networking

KeyDescription
DNS ModeSelect the primary DNS connection type (TCP or UDP).
DNS ResolverSelect the primary DNS connection type (TCP or UDP).
Prefer IPv4Prioritize IPv4 DNS results when trying to establish a connection.
KeepaliveEnable or disable Keepalive support.
Keepalive Idle TimeoutSet maximum time allowed for an idle Keepalive connection.
Max Connect TimeoutSet maximum time allowed to establish a connection, this time includes the TLS handshake.
Max Connect Timeout Log ErrorOn connection timeout, specify if it should log an error. When disabled, the timeout is logged as a debug message.
Max Keepalive RecycleSet maximum number of times a keepalive connection can be used before it is retired.
Source AddressSpecify network address to bind for data traffic.