ansible-nas/roles/promtail/templates/config.yml
2023-07-19 23:58:08 +01:00

21 lines
436 B
YAML

---
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /data/positions.yml
clients:
- url: {{ promtail_loki_url }}
tenant_id: 1
scrape_configs:
- job_name: docker_scrape
docker_sd_configs:
- host: unix:///var/run/docker.sock
refresh_interval: 5s
relabel_configs:
- source_labels: ['__meta_docker_container_name']
regex: '/(.*)'
target_label: 'container'