good first cut

This commit is contained in:
root
2023-11-20 17:37:32 -06:00
parent b739bd918b
commit c1c8b30c02
4 changed files with 245 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
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
relabel_configs:
- source_labels: ['__meta_docker_container_name']
regex: '/(.*)'
target_label: 'container'
- source_labels: ['__meta_docker_container_log_stream']
target_label: 'logstream'
# - target_label: 'host'
# replacement: 'docker-lxc'