Skip to content

Instantly share code, notes, and snippets.

@wzhliang
Created July 9, 2020 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wzhliang/de743413f3e897a3885e98509523fd31 to your computer and use it in GitHub Desktop.
Save wzhliang/de743413f3e897a3885e98509523fd31 to your computer and use it in GitHub Desktop.
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
- url: http://127.0.0.1:3100/loki/api/v1/push
scrape_configs:
- job_name: journal
journal:
max_age: 12h
path: /var/log/journal
labels:
job: systemd-journal
relabel_configs:
- source_labels: ['__journal__systemd_unit']
target_label: 'unit'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment