Init
This commit is contained in:
35
promtail/promtail-config.yml
Normal file
35
promtail/promtail-config.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
server:
|
||||
http_listen_port: 9080
|
||||
grpc_listen_port: 0
|
||||
|
||||
positions:
|
||||
filename: /tmp/positions.yaml
|
||||
|
||||
clients:
|
||||
- url: http://loki:3100/loki/api/v1/push
|
||||
|
||||
scrape_configs:
|
||||
- job_name: system
|
||||
static_configs:
|
||||
- targets:
|
||||
- localhost
|
||||
labels:
|
||||
job: varlogs
|
||||
__path__: /var/log/messages
|
||||
|
||||
- job_name: caddy
|
||||
static_configs:
|
||||
- targets:
|
||||
- localhost
|
||||
labels:
|
||||
job: caddy
|
||||
__path__: /var/log/caddy/*log
|
||||
agent: caddy-promtail
|
||||
pipeline_stages:
|
||||
- json:
|
||||
expressions:
|
||||
duration: duration
|
||||
status: status
|
||||
- labels:
|
||||
duration:
|
||||
status:
|
||||
Reference in New Issue
Block a user