Removing optlogs, rearranging static_configs to avoid dupe logs
This commit is contained in:
parent
487aef6c87
commit
71f0431808
@ -11,7 +11,12 @@ clients:
|
|||||||
# local machine logs
|
# local machine logs
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: system
|
- job_name: system
|
||||||
pipeline_stages:
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- localhost
|
||||||
|
labels:
|
||||||
|
job: varlogs
|
||||||
|
__path__: /var/log/**/**log
|
||||||
- job_name: journal
|
- job_name: journal
|
||||||
journal:
|
journal:
|
||||||
max_age: 12h
|
max_age: 12h
|
||||||
@ -22,16 +27,3 @@ scrape_configs:
|
|||||||
target_label: "unit"
|
target_label: "unit"
|
||||||
- source_labels: ["__journal_container_name"]
|
- source_labels: ["__journal_container_name"]
|
||||||
target_label: "container"
|
target_label: "container"
|
||||||
static_configs:
|
|
||||||
- targets:
|
|
||||||
- localhost
|
|
||||||
labels:
|
|
||||||
job: varlogs
|
|
||||||
__path__: /var/log/**/**log
|
|
||||||
- targets:
|
|
||||||
- localhost
|
|
||||||
labels:
|
|
||||||
job: containers
|
|
||||||
__path__: /opt/logs/**/*log # internal container logs
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user