Skip to content

Instantly share code, notes, and snippets.

@Sean-Bradley
Last active August 29, 2020 09:13
Show Gist options
  • Save Sean-Bradley/fff3c40241b133666d122775bea30845 to your computer and use it in GitHub Desktop.
Save Sean-Bradley/fff3c40241b133666d122775bea30845 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
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