vm-hosts: Fix domain label

The `__path__` label is automatically changed to `filename` before the
processing pipeline begins.
frigate-exporter
Dustin 2024-10-14 12:32:25 -05:00
parent 36145cb2ee
commit 4ae25192d0
1 changed files with 2 additions and 2 deletions

View File

@ -275,7 +275,7 @@ promtail_scrape_configs:
job: vm-console
pipeline_stages:
- regex:
source: __path__
source: filename
expression: '/var/log/libvirt/console/(?P<domain>.*)\.log$'
- labels:
domain:
@ -286,7 +286,7 @@ promtail_scrape_configs:
job: qemu
pipeline_stages:
- regex:
source: __path__
source: filename
expression: '.*/(?P<domain>.*)\.log$'
- labels:
domain: