Loki was running but had no log shipper — no labels or logs were visible in Grafana. Adds Promtail to scrape all Docker container logs and push them to Loki. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
422 B
YAML
22 lines
422 B
YAML
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: docker
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: docker
|
|
__path__: /var/lib/docker/containers/*/*.log
|
|
pipeline_stages:
|
|
- docker: {}
|
|
- labeldrop:
|
|
- filename
|