diff --git a/roles/grafana/templates/vmagent.yaml.j2 b/roles/grafana/templates/vmagent.yaml.j2 index 1c0cf29..94153ef 100644 --- a/roles/grafana/templates/vmagent.yaml.j2 +++ b/roles/grafana/templates/vmagent.yaml.j2 @@ -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'