Update file vmagent.yaml.j2
This commit is contained in:
parent
b909385ebb
commit
591b2b941f
@ -34,7 +34,7 @@ scrape_configs:
|
|||||||
regex: '(.*):{{ monitoring_ports.cadvisor }}'
|
regex: '(.*):{{ monitoring_ports.cadvisor }}'
|
||||||
replacement: '${1}'
|
replacement: '${1}'
|
||||||
|
|
||||||
# ========== Proxmox VE ==========
|
# ========== Proxmox VE ==========
|
||||||
- job_name: 'proxmox'
|
- job_name: 'proxmox'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
@ -46,21 +46,12 @@ scrape_configs:
|
|||||||
module: [default]
|
module: [default]
|
||||||
scrape_interval: 30s
|
scrape_interval: 30s
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
|
# Исправляем дублирование instance
|
||||||
- source_labels: [__address__]
|
- source_labels: [__address__]
|
||||||
target_label: instance
|
target_label: instance
|
||||||
regex: '([^:]+)(:\d+)?'
|
regex: '([^:]+)(:\d+)?'
|
||||||
replacement: '${1}'
|
replacement: '${1}'
|
||||||
action: replace
|
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 ==========
|
# ========== Self-monitoring ==========
|
||||||
- job_name: 'vmagent'
|
- job_name: 'vmagent'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user