cooperlees

Untitled

Nov 8th, 2020
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.58 KB | None | 0 0
  1. server:
  2.   http_listen_port: 9080
  3.   grpc_listen_port: 0
  4.  
  5. positions:
  6.   filename: /tmp/positions.yaml
  7.  
  8. clients:
  9.   - url: http://loki:3100/loki/api/v1/push
  10.  
  11. scrape_configs:
  12.   - job_name: system
  13.     pipeline_stages:
  14.     static_configs:
  15.     - labels:
  16.         job: varlogs
  17.         __path__: /var/log/*log
  18.         hostname: us.cooperlees.com
  19.  
  20.   - job_name: journal
  21.     journal:
  22.       max_age: 12h
  23.       labels:
  24.         job: systemd-journal
  25.         hostname: us.cooperlees.com
  26.     relabel_configs:
  27.       - source_labels: ['__journal__systemd_unit']
  28.         target_label: 'unit'
Add Comment
Please, Sign In to add comment