Grafana Loki

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, making it easy to 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's powerful logging tools. With the Grafana Loki Destination Plugin, you can easily configure your Calyptia Core pipeline to send your log data to Grafana Loki,

Configuration Parameters

The following are configuration Parameters for Grafana Loki Logs Destination Plugin.

KeyDescription

Host

Loki hostname or IP address. Do not include the subpath, I.e. loki/api/v1/push, only include the base hostname / URL

Port

TCP port of the target Loki service

The following are Basic Authentication configuration Parameters for Grafana Loki Logs Destination Plugin.

KeyDescription

HTTP Username

Basic Auth Username

HTTP Password

Basic Auth Password. Requires HTTP_User to be set

The following are Advanced configuration Parameters for Grafana Loki Logs Destination Plugin.

KeyDescription

Tenant ID

Tenant 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 Key

If set, X-Scope-OrgID will be the value of the key from incoming record. It is useful to set X-Scode-OrgID dynamically

Labels

labels for API requests, If no value is set the default label is job=fluent-bit

Label Keys

Comma-separated list of keys to use as stream labels

Enable Auto Kubernetes Labels

If set to true, it will add all Kubernetes labels to Loki labels.

Drop Single Key

If set to true and only a single key remains, the log line sent to Loki will be the value of that key.

Remove Keys

Comma separated list of keys to remove

Line Format

Format to use when flattening the record to a log line. Valid values are 'json' or 'key_value'. If set to 'json' 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 '='.

The following are Security and TLS configuration Parameters for Grafana Loki Logs Destination Plugin.

KeyDescription

TLS

Enable or Disable TLS/SSL support

TLS Certificate Validation

Turn TLS/SSL certificate validation on / off, TLS must be on for this setting to be enabled.

TLS Debug Level

Set TLS debug verbosity level. It accepts the following values: 0 (No debug), 1 (Error), 2 (State change), 3 (Informational), and 4 Verbose

CA Certificate File Path

Absolute path to CA certificate file

Certificate File Path

Absolute path to Certificate file

Private key File Path

Absolute path to private Key file

Private Key Path Password

Optional password for tls.key_file file

TLS SNI Hostname Extension

Hostname to be used for TLS SNI Extension

The following are Advanced Networking configuration Parameters for Grafana Loki Logs Destination Plugin.

KeyDescription

DNS Mode

Select the primary DNS connection type (TCP or UDP)

DNS Resolver

Select the primary DNS connection type (TCP or UDP)

Prefer IPv4

Prioritize IPv4 DNS results when trying to establish a connection

Keepalive

Enable or disable Keepalive support

Keepalive Idle Timeout

Set maximum time allowed for an idle Keepalive connection

Max Connect Timeout

Set maximum time allowed to establish a connection, this time includes the TLS handshake

Max Connect Timeout Log Error

On connection timeout, specify if it should log an error. When disabled, the timeout is logged as a debug message

Max Keepalive Recycle

Set maximum number of times a keepalive connection can be used before it is retired.

Source Address

Specify network address to bind for data traffic

Last updated