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