Update file vmagent.yaml.j2

This commit is contained in:
Administrator 2025-11-20 08:24:08 +00:00
parent 88746c7210
commit 04a23a28d2

View File

@ -50,14 +50,14 @@ scrape_configs:
target_label: instance
regex: '(.*):{{ monitoring_ports.proxmox_exporter }}'
replacement: '${1}'
action: replace
metric_relabel_configs:
# Исключаем остановленные контейнеры
- source_labels: [status]
regex: 'stopped'
action: drop
# Исключаем остановленные VM
- source_labels: [vm_status]
regex: 'stopped'
# Исключаем остановленные контейнеры (pve_up=0)
- source_labels: [__name__]
regex: 'pve_up'
action: keep
- source_labels: [pve_up]
regex: '0'
action: drop
# ========== Self-monitoring ==========