gathering/promtail.yml.tmpl

30 lines
559 B
Cheetah

server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
- url: https://l.monitor.autonomic.zone/loki/api/v1/push
basic_auth:
username: loki
password: {{ secret "loki_admin_password" }}
scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: varlogs
__path__: /var/log/*log
- job_name: containers
static_configs:
- targets:
- localhost
labels:
job: containers
__path__: /var/lib/docker/containers/*/*log