vm-hosts: Fix domain label
The `__path__` label is automatically changed to `filename` before the processing pipeline begins.frigate-exporter
parent
36145cb2ee
commit
4ae25192d0
|
@ -275,7 +275,7 @@ promtail_scrape_configs:
|
||||||
job: vm-console
|
job: vm-console
|
||||||
pipeline_stages:
|
pipeline_stages:
|
||||||
- regex:
|
- regex:
|
||||||
source: __path__
|
source: filename
|
||||||
expression: '/var/log/libvirt/console/(?P<domain>.*)\.log$'
|
expression: '/var/log/libvirt/console/(?P<domain>.*)\.log$'
|
||||||
- labels:
|
- labels:
|
||||||
domain:
|
domain:
|
||||||
|
@ -286,7 +286,7 @@ promtail_scrape_configs:
|
||||||
job: qemu
|
job: qemu
|
||||||
pipeline_stages:
|
pipeline_stages:
|
||||||
- regex:
|
- regex:
|
||||||
source: __path__
|
source: filename
|
||||||
expression: '.*/(?P<domain>.*)\.log$'
|
expression: '.*/(?P<domain>.*)\.log$'
|
||||||
- labels:
|
- labels:
|
||||||
domain:
|
domain:
|
||||||
|
|
Loading…
Reference in New Issue