grafana/devenv/docker/blocks/loki-promtail/promtail-config.yaml

26 lines
430 B
YAML
Raw Normal View History

server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
client:
url: http://loki:3100/api/prom/push
scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: varlogs
__path__: /var/log/*log
- job_name: grafana
static_configs:
- targets:
- localhost
labels:
job: grafana
__path__: /var/log/grafana/*log