promtail-config-file.cfg.in 605 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# 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', '') }}