config.yaml 470 B

123456789101112131415161718192021222324252627
  1. server:
  2. http_listen_port: 9080
  3. grpc_listen_port: 0
  4. positions:
  5. filename: /tmp/positions.yaml
  6. client:
  7. url: http://loki:3100/api/prom/push
  8. scrape_configs:
  9. - job_name: system
  10. entry_parser: raw
  11. static_configs:
  12. - targets:
  13. - localhost
  14. labels:
  15. job: varlogs
  16. __path__: /var/log/*log
  17. - job_name: grafana
  18. entry_parser: raw
  19. static_configs:
  20. - targets:
  21. - localhost
  22. labels:
  23. job: grafana
  24. __path__: /var/log/grafana/*log