ansible/promtail.yml
2024-11-24 19:32:23 -05:00

17 lines
460 B
YAML

- name: Manage promtail service
hosts: traefik
become: true
vars:
promtail_clients:
- url: http://192.168.1.183:3100/loki/api/v1/push
promtail_scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: traefik
instance: "{{ ansible_fqdn }}"
__path__: /var/log/traefik/*.log
roles:
- role: grafana.grafana.promtail