29 lines
899 B
YAML
29 lines
899 B
YAML
positions:
|
|
filename: /positions.yaml
|
|
server:
|
|
http_listen_port: 8080
|
|
|
|
clients:
|
|
- url: https://{{ common.loki.host | mandatory }}/loki/api/v1/push
|
|
tenant_id: "{{ inventory_hostname | replace('.', '-') }}"
|
|
basic_auth:
|
|
username: "{{ common.loki.username | mandatory }}"
|
|
password: "{{ common.loki.password | mandatory }}"
|
|
|
|
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'
|