Switch from machine logs to docker logs
This commit is contained in:
parent
97dbc9af7b
commit
c1c743f979
@ -11,24 +11,24 @@ clients:
|
||||
scrape_configs:
|
||||
|
||||
# local machine logs
|
||||
|
||||
- job_name: local
|
||||
static_configs:
|
||||
- targets:
|
||||
- localhost
|
||||
labels:
|
||||
job: varlogs
|
||||
__path__: /var/log/*log
|
||||
#
|
||||
#- job_name: local
|
||||
# static_configs:
|
||||
# - targets:
|
||||
# - localhost
|
||||
# labels:
|
||||
# job: varlogs
|
||||
# __path__: /var/log/*log
|
||||
|
||||
## docker logs
|
||||
|
||||
#- job_name: docker
|
||||
# pipeline_stages:
|
||||
# - docker: {}
|
||||
# static_configs:
|
||||
# - labels:
|
||||
# job: docker
|
||||
# __path__: /var/lib/docker/containers/*/*-json.log
|
||||
- job_name: docker
|
||||
pipeline_stages:
|
||||
- docker: {}
|
||||
static_configs:
|
||||
- labels:
|
||||
job: docker
|
||||
__path__: /var/lib/docker/containers/*/*-json.log
|
||||
|
||||
# syslog target
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user