34 lines
785 B
YAML
34 lines
785 B
YAML
server:
|
|
disable: true
|
|
|
|
positions:
|
|
filename: /var/cache/promtail/positions.yaml
|
|
|
|
clients:
|
|
- url: 'https://ildkule.pvv.ntnu.no:3100/loki/api/v1/push'
|
|
|
|
# TODO: Add scrape configs here.
|
|
# See https://grafana.com/docs/loki/latest/send-data/promtail/configuration/#scrape_configs
|
|
scrape_configs:
|
|
- job_name: system
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: /var/logs
|
|
host: hostname
|
|
__path__: /var/log/**/**log
|
|
- job_name: systemd-journal
|
|
journal:
|
|
labels:
|
|
job: systemd-journal
|
|
max_age: 12h
|
|
relabel_configs:
|
|
- source_labels:
|
|
- __journal__systemd_unit
|
|
target_label: unit
|
|
- source_labels:
|
|
- __journal_priority_keyword
|
|
target_label: level
|
|
|