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"}.
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.
Similar Modules
Disk IO Monitor
Monitor per-device disk read/write throughput in real time using iostat.
bash
·
Beginner
Cron Job Heartbeat Monitor
Send a heartbeat ping after each cron job run — alert if a heartbeat is missed.
python
·
Intermediate
Datadog Custom Metric Reporter
Report custom business metrics to Datadog from a Python script via DogStatsD.
python
·
Advanced