Added promtail compose

This commit is contained in:
Christian Lempa 2025-02-06 16:18:04 +01:00
parent b91d5aa8ad
commit 816c922adf
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,9 @@
---
services:
promtail:
image: grafana/promtail:3.3.2
command: "-config.file=/mnt/config/config.yaml"
volumes:
- ./config/config.yaml:/mnt/config/config.yaml:ro
- /var/log:/var/log:ro
restart: unless-stopped

View File

@ -0,0 +1,19 @@
---
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
- url: https://<USERNAME>:<PASSWORD>@<LOKI-FQDN>/loki/api/v1/push
scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: varlogs
__path__: /var/log/*log