Add monitoring
This commit is contained in:
35
monitoring/promtail/config/config.yml
Normal file
35
monitoring/promtail/config/config.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
server:
|
||||
http_listen_port: 43623
|
||||
grpc_listen_port: 0
|
||||
|
||||
positions:
|
||||
filename: /tmp/positions.yaml
|
||||
|
||||
clients:
|
||||
- url: http://localhost:43622/loki/api/v1/push
|
||||
|
||||
scrape_configs:
|
||||
- job_name: docker
|
||||
static_configs:
|
||||
- targets:
|
||||
- localhost
|
||||
labels:
|
||||
job: dockerlogs
|
||||
__path__: /var/lib/docker/containers/*/*-json.log
|
||||
pipeline_stages:
|
||||
- json:
|
||||
expressions:
|
||||
stream: stream
|
||||
attrs: attrs
|
||||
tag: attrs.tag
|
||||
- labels:
|
||||
stream:
|
||||
tag:
|
||||
|
||||
- job_name: system
|
||||
static_configs:
|
||||
- targets:
|
||||
- localhost
|
||||
labels:
|
||||
job: varlogs
|
||||
__path__: /var/log/*log
|
||||
Reference in New Issue
Block a user