promtail.journal.config.yml.j2 366 B

1234567891011121314151617
  1. server:
  2. http_listen_port: 9080
  3. grpc_listen_port: 0
  4. clients:
  5. - url: http://192.168.1.48:3100/loki/api/v1/push
  6. scrape_configs:
  7. - job_name: journal
  8. journal:
  9. max_age: 24h
  10. labels:
  11. job: systemd-journal
  12. host: {{ansible_hostname}}
  13. relabel_configs:
  14. - source_labels: ['__journal__systemd_unit']
  15. target_label: 'unit'