2023-07-27 01:43:46 +02:00
|
|
|
positions:
|
2023-08-07 01:58:17 +02:00
|
|
|
filename: /positions.yaml
|
2023-08-09 02:56:23 +02:00
|
|
|
server:
|
|
|
|
http_listen_port: 8080
|
2023-07-27 01:43:46 +02:00
|
|
|
|
|
|
|
clients:
|
|
|
|
- url: http://loki:3100/loki/api/v1/push
|
|
|
|
|
|
|
|
scrape_configs:
|
|
|
|
- job_name: flog_scrape
|
|
|
|
docker_sd_configs:
|
|
|
|
- host: unix:///var/run/docker.sock
|
|
|
|
refresh_interval: 5s
|
|
|
|
# filters:
|
|
|
|
# - name: label
|
|
|
|
# values: ["logging=promtail"]
|
|
|
|
relabel_configs:
|
|
|
|
- source_labels: ['__meta_docker_container_name']
|
|
|
|
regex: '/(.*)'
|
|
|
|
target_label: 'container'
|
|
|
|
- source_labels: ['__meta_docker_container_log_stream']
|
|
|
|
target_label: 'logstream'
|
|
|
|
- source_labels: ['__meta_docker_container_label_logging_jobname']
|
|
|
|
target_label: 'job'
|