# https://github.com/grafana/loki/blob/master/docs/logentry/processing-log-lines.md

server:
  http_listen_port: {{ promtail['http_port'] }}
  # XXX this external_url does not work ... promtail still listen on all IPs
  external_url: {{ promtail['url'] }}
  grpc_listen_port: 0

positions:
  filename: {{ promtail['dir'] }}/positions.yaml

clients:
  - url: {{ loki['url'] }}/api/prom/push

scrape_configs:
- job_name: test
  static_configs:
  - targets:
      - localhost
    labels:
      job: grafanalogs
      __path__: ./var/log/*log
{{ slapparameter_dict.get('promtail-extra-scrape-config', '') }}
