gucharbon.setup_loki

Setup Loki

Follow these simple steps to quickly set up Loki on an Ubuntu server:

  • Download the binary file.
  • Create a systemd service.
  • Start the service.

Requirements

To perform this setup, you need SSH access to the remote server. The server should use a modern systemd-based operating system.

Role Variables

Variable Name Default Value Description
loki_version 1.6.1 The version of Loki to use
loki_system_user loki The user account under which Loki runs
loki_system_group loki The group under which Loki runs
loki_server_http_listen_port 3100 The port on which Loki listens
loki_server_http_listen_address localhost The address on which Loki listens
loki_directories {} A list of directories to create before starting Loki
loki_service_state started The desired state of the systemd service
loki_service_enabled true Whether to start Loki at boot
loki_schema_config default dict Configuration for the schema in YAML format
loki_storage_config default dict Configuration for storage in YAML format
loki_ingester default dict Settings for the ingester in YAML format
loki_limits_config default dict Limits settings in YAML format
loki_chunk_store_config default dict Chunk store settings in YAML format
loki_table_manager default dict Table manager settings in YAML format

Example Playbook

Below is an example playbook that sets up Loki to listen on all interfaces and uses a specific version:

- hosts: localhost
  roles:
    - role: gucharbon.setup_loki
      vars:
        loki_version: 1.6.1
        loki_server_http_listen_address: 0.0.0.0

License

MIT

Informazioni sul progetto

Install loki on an ubuntu server.

Installa
ansible-galaxy install gucharbon.setup_loki
Licenza
Unknown
Download
190
Proprietario