Monitoring yaml Advanced

Loki Log Aggregation Config

Promtail config to ship systemd journal logs to a Loki instance.

yaml
server:
  http_listen_port: 9080

clients:
  - url: http://loki:3100/loki/api/v1/push

scrape_configs:
  - job_name: systemd
    journal:
      labels:
        job: systemd
    relabel_configs:
      - source_labels: [__journal__systemd_unit]
        target_label: unit

Prerequisites

  • Promtail >= 2.9
  • Loki >= 2.9

Pro Tips

  • → Filter in Grafana with {unit="myapp.service"}.

Was this module useful?

Share your experience — it helps the team improve.

Leave Feedback

Commercial Licensing

Acquire a production access token or template license for enterprise deployment.

Module Info

Language
yaml
Level
Advanced
Read time
4 min
Published
Feb 2026
License
Commercial License

Newsletter

New modules every week, directly to your inbox.