Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 676 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 676 Bytes

Promtail role

Deploy Promtail container.

Usage

Configure the role.

# https://hub.docker.com/r/grafana/promtail/
promtail_image: grafana/promtail:3.3.2
promtail_hostname: promtail01
promtail_description: forwad logs to loki # default: Promtail
promtail_state: stopped # default: started
promtail_data_dir: /usr/share/promtail # default: "/usr/share/{{ promtail_hostname }}"
promtail_push_url: loki.example.com/loki/api/v1/push
promtail_loki_basic_auth_username: log # default: loki
promtail_loki_basic_auth_password: "{{ vault_promtail_loki_basic_auth_password }}"

And include it in your playbook.

- hosts: promtail
  roles:
  - role: promtail