Skip to content

andreswebs/ansible-role-promtail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-role-promtail

Ansible role to install promtail.

Requirements

The jq program must be installed on the host. See the jq web page to install.

Install

ansible-galaxy install andreswebs.promtail

Role Variables

  • promtail_loki_url: Set the Loki URL in the format <protocol>://<host>:<port>. The default value is http://localhost:3100.

  • promtail_label_origin: Set the value for the external label origin. The default value is default.

Example Playbook

---
- hosts: servers
  roles:
    - role: andreswebs.promtail
      vars:
        promtail_loki_url: http://loki.example.com:3100
        promtail_label_origin: example-lxd-container

Authors

Andre Silva @andreswebs

License

This project is licensed under the Unlicense.