Update file vmagent.yaml.j2

This commit is contained in:
Administrator 2025-11-20 07:33:22 +00:00
parent 6069b4843a
commit 88746c7210

View File

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