Update file vmagent.yaml.j2

This commit is contained in:
Administrator 2025-11-20 08:52:17 +00:00
parent b909385ebb
commit 591b2b941f

View File

@ -34,7 +34,7 @@ scrape_configs:
regex: '(.*):{{ monitoring_ports.cadvisor }}'
replacement: '${1}'
# ========== Proxmox VE ==========
# ========== Proxmox VE ==========
- job_name: 'proxmox'
static_configs:
- targets:
@ -46,21 +46,12 @@ scrape_configs:
module: [default]
scrape_interval: 30s
relabel_configs:
# Исправляем дублирование instance
- source_labels: [__address__]
target_label: instance
regex: '([^:]+)(:\d+)?'
replacement: '${1}'
action: replace
- source_labels: [__address__]
target_label: __address__
regex: '([^:]+)(:\d+)?'
replacement: '${1}'
action: replace
metric_relabel_configs:
# Исключаем остановленные контейнеры (pve_up=0)
- source_labels: [pve_up]
regex: '0'
action: drop
# ========== Self-monitoring ==========
- job_name: 'vmagent'