gathering/promtail.yml.tmpl

30 lines
559 B
Cheetah
Raw Permalink Normal View History

2022-03-17 10:38:50 +00:00
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
2022-03-18 11:35:30 +00:00
- url: https://l.monitor.autonomic.zone/loki/api/v1/push
2022-03-18 14:09:19 +00:00
basic_auth:
username: loki
password: {{ secret "loki_admin_password" }}
2022-03-17 10:38:50 +00:00
scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: varlogs
__path__: /var/log/*log
2022-03-18 14:48:04 +00:00
- job_name: containers
static_configs:
2022-03-18 15:19:31 +00:00
- targets:
2022-03-18 14:48:04 +00:00
- localhost
labels:
job: containers
__path__: /var/lib/docker/containers/*/*log