add proxmox exporter

This commit is contained in:
Ludovic Cartier
2023-01-27 20:34:33 +01:00
parent 7d6d9e2076
commit 98fe9294b3
5 changed files with 88 additions and 0 deletions

View File

@ -387,3 +387,20 @@ scrape_configs:
regex: '(.*):8082'
replacement: '${1}'
{% endif %}
{% if prometheus_pve_exporter_targets is defined %}
# proxmox #
- job_name: pve
scrape_interval: 30s
static_configs:
- targets:
{% for target in prometheus_pve_exporter_targets %}
- {{ target }}:9221
{% endfor %}
metrics_path: /pve
relabel_configs:
- source_labels: [ __address__ ]
target_label: instance
regex: '(.*):9221'
replacement: '${1}'
{% endif %}