funkyfuture.loki

Ansible Role to deploy loki

Please refer to Grafana's Ansible collection for deploying Loki and Promtail. This role is now deprecated.

This role has been be used to deploy loki on Linux distributions with the systemd service manager. It's meant to complement the patrickjahns.promtail role.

Compatibility

This role is compatible with systemd-based Linux distributions.

Role Variables

The variables to control loki's configuration file merely provide a minimal set of options for simple setup. Data retention is configured per default with the table manager. Detailed control can be achieved with the loki_config_overrides variable.

Variable name Description
loki_arguments arguments to pass to loki binary
loki_config_overrides a complete mapping of configuration file contents that extends and overrides what is defined by variables
loki_data_retention_period the period after which data is dismissed, e.g. 12h, 3d, 42w
loki_ingester a mapping with ingester settings
loki_install_logcli whether logcli shall be installed too
loki_log_level logging level
loki_schema_configs a list of period_config settings
loki_server_http_listen_port listen port for loki
loki_server_http_listen_address listen address for loki
loki_storage_config a mapping with storage_config settings
loki_system_user user for running loki
loki_system_group group for running loki
loki_version the loki version to deploy; if your play also defines a promtail_version it overrides whatever values is defined

See the defaults/main.yml for default values and loki's configuration reference for details.

About

Deploy loki, the log aggregator

Install
ansible-galaxy install funkyfuture.loki
GitHub repository
License
gpl-3.0
Downloads
71