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