Update file vmagent.yaml.j2
This commit is contained in:
parent
88746c7210
commit
04a23a28d2
@ -50,14 +50,14 @@ scrape_configs:
|
|||||||
target_label: instance
|
target_label: instance
|
||||||
regex: '(.*):{{ monitoring_ports.proxmox_exporter }}'
|
regex: '(.*):{{ monitoring_ports.proxmox_exporter }}'
|
||||||
replacement: '${1}'
|
replacement: '${1}'
|
||||||
|
action: replace
|
||||||
metric_relabel_configs:
|
metric_relabel_configs:
|
||||||
# Исключаем остановленные контейнеры
|
# Исключаем остановленные контейнеры (pve_up=0)
|
||||||
- source_labels: [status]
|
- source_labels: [__name__]
|
||||||
regex: 'stopped'
|
regex: 'pve_up'
|
||||||
action: drop
|
action: keep
|
||||||
# Исключаем остановленные VM
|
- source_labels: [pve_up]
|
||||||
- source_labels: [vm_status]
|
regex: '0'
|
||||||
regex: 'stopped'
|
|
||||||
action: drop
|
action: drop
|
||||||
|
|
||||||
# ========== Self-monitoring ==========
|
# ========== Self-monitoring ==========
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user